mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-26 05:12:59 +00:00
21 lines
444 B
JavaScript
21 lines
444 B
JavaScript
|
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
|
||
|
})
|
||
|
],
|
||
|
exitOnError: false
|
||
|
});
|
||
|
|
||
|
module.exports = logger;
|
||
|
module.exports.stream = {
|
||
|
write: function(message, encoding){
|
||
|
logger.info(message);
|
||
|
}
|
||
|
};
|