This commit is contained in:
Evgenii Abramov
2021-05-16 21:49:08 +03:00
parent ce50a5d1c8
commit ab64a6a94d

10
app.js
View File

@@ -32,11 +32,11 @@ global.logger = createLogger({
format: combine( format: combine(
errors({stack: true}), errors({stack: true}),
timestamp(), timestamp(),
// printf((a/* {level, message, timestamp, stack} */) => { printf(({level, message, timestamp, stack}) => {
// //console.dir(a, {depth: 9}); //console.dir(a, {depth: 9});
// return `${timestamp} ${level}: ${message}`; return `${timestamp} ${level}: ${message} \n ${stack != undefinde ? stack : ''}`;
// }) })
prettyPrint() // prettyPrint()
), ),
transports: [ transports: [
new transports.Console({ new transports.Console({