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.

22 lines
424 B

  1. const winston = require('winston')
  2. /* global wiki */
  3. // ------------------------------------
  4. // Console
  5. // ------------------------------------
  6. module.exports = {
  7. key: 'console',
  8. title: 'Console',
  9. props: [],
  10. init (logger, conf) {
  11. logger.add(winston.transports.Console, {
  12. level: wiki.config.logLevel,
  13. prettyPrint: true,
  14. colorize: true,
  15. silent: false,
  16. timestamp: true
  17. })
  18. }
  19. }