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.

20 lines
488 B

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