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
441 B

  1. const winston = require('winston')
  2. // ------------------------------------
  3. // Papertrail
  4. // ------------------------------------
  5. module.exports = {
  6. init (logger, conf) {
  7. // eslint-disable-next-line no-unused-expressions
  8. require('winston-papertrail').Papertrail // NOSONAR
  9. logger.add(new winston.transports.Papertrail({
  10. host: conf.host,
  11. port: conf.port,
  12. level: 'warn',
  13. program: 'wiki.js'
  14. }))
  15. }
  16. }