mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 02:06:29 -05:00
5870d988b5
add ‘use strict’ in all backend file
23 lines
431 B
JavaScript
23 lines
431 B
JavaScript
'use strict'
|
|
var winston = require('winston')
|
|
winston.emitErrs = true
|
|
|
|
var logger = new winston.Logger({
|
|
transports: [
|
|
new winston.transports.Console({
|
|
level: 'debug',
|
|
handleExceptions: true,
|
|
json: false,
|
|
colorize: true,
|
|
timestamp: true
|
|
})
|
|
],
|
|
exitOnError: false
|
|
})
|
|
|
|
module.exports = logger
|
|
module.exports.stream = {
|
|
write: function (message, encoding) {
|
|
logger.info(message)
|
|
}
|
|
}
|