开发者社区> 镜像站> NPM> @verdigris/adonis-logzio
@verdigris/adonis-logzio
Logz.io transporter for AdonisJs logger
Last updated 3 years ago by verdigris-service .
BSD-2-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @verdigris/adonis-logzio 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (1)
Dependents (0)
None