Skip to content

Loggly transporter for AdonisJs Logger

Notifications You must be signed in to change notification settings

ordent/adonis-loggly

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Loggly transporter for AdonisJs Logger

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%