You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
456 B

  1. const winston = require('winston')
  2. // ------------------------------------
  3. // Loggly
  4. // ------------------------------------
  5. module.exports = {
  6. key: 'loggly',
  7. title: 'Loggly',
  8. props: ['token', 'subdomain'],
  9. init (logger, conf) {
  10. require('winston-loggly-bulk')
  11. logger.add(new winston.transports.Loggly({
  12. token: conf.token,
  13. subdomain: conf.subdomain,
  14. tags: ['wiki-js'],
  15. level: 'warn',
  16. json: true
  17. }))
  18. }
  19. }