@adonisjs/loggly

1.0.2 • Public • Published

Adonis Loggly

Loggly logger provider for AdonisJs

This package let you make use of loggly as the transporter for your log messages. It is expected to be used with the inbuilt Logger provider of AdonisJs.

Installation

adonis install @adonisjs/loggly

# yarn users
adonis install @adonisjs/loggly --yarn

Next step is to register the provider as show below.

const providers = [
  '@adonisjs/loggly/providers/LogglyProvider'
]

Now, you are all set to make use of this provider. Just make sure to define the required configuration and set transporter=loggly.

Config

module.exports = {
  logger: {
    transport: 'loggly',

    loggly: {
      driver: 'loggly',
      tags: [],
      json: true,
      token: 'LOGGLY_TOKEN',
      subdomain: 'LOGGLY_SUBDOMAIN'      
    }
  }
}

Read about all the config options here https://www.npmjs.com/package/winston-loggly-bulk.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    15
    • latest
  • 1.0.2
    15
    • legacy

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    15
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @adonisjs/loggly

Weekly Downloads

15

Version

1.0.2

License

MIT

Unpacked Size

5.3 kB

Total Files

6

Last publish

Collaborators

  • julien-r44
  • romainlanz
  • virk