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.

18 lines
387 B

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