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.

17 lines
421 B

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