codecombat/server/commons/logging.coffee
2016-06-17 10:35:22 -07:00

9 lines
218 B
CoffeeScript

winston = require 'winston'
module.exports.setup = ->
winston.remove(winston.transports.Console)
if not global.testing
winston.add(winston.transports.Console,
colorize: true,
timestamp: true
)