codecombat/server/commons/logging.coffee

10 lines
218 B
CoffeeScript
Raw Normal View History

2014-06-30 22:16:26 -04:00
winston = require 'winston'
2014-01-03 13:32:13 -05:00
module.exports.setup = ->
winston.remove(winston.transports.Console)
2016-06-17 13:35:22 -04:00
if not global.testing
winston.add(winston.transports.Console,
colorize: true,
timestamp: true
)