@verdigris/adonis-logzio
v1.0.0
Published
Logz.io transporter for AdonisJs logger
Downloads
1
Readme
adonis-logzio
Logz.io logger provider for AdonisJs.
This package allows Logz.io as the transporter of your logs. It is intended for use with AdonisJs framework.
Installation
adonis install @verdigris/adonis-logzio
# yarn users
adonis install @verdigris/adonis-logzio
Next step is to register the provider as shown below:
const providers = [
'@verdigris/adonis-logzio/providers/LogzioProvider'
];
Now, you are all set to make use of this provider. Just make sure to define the required configuration and set transporter=logzio.
Config
module.exports = {
logger: {
transport: 'logzio',
logzio: {
token: 'LOGZIO_TOKEN',
host: 'listener.logz.io',
type: 'YourLogType' // OPTIONAL (If none is set, it will be 'nodejs')
}
}
}
Further configuration options are available here: https://github.com/logzio/winston-logzio
License
This software is distributed AS IS WITHOUT WARRANTY under Simplified BSD license.
Verdigris Technologies Inc. assumes NO RESPONSIBILITY OR LIABILITY UNDER ANY CIRCUMSTANCES for usage of this software. See the LICENSE file for detailed legal information.
Copyright © 2018 Verdigris Technologies, Inc. All rights reserved.