We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 692cca6 commit 63ca496Copy full SHA for 63ca496
logger/index.js
@@ -37,7 +37,6 @@ const logger = winston.createLogger({
37
format: combine(
38
timestamp(),
39
errors({stack: true}),
40
- winston.format.json(),
41
winston.format((info, opts) => {
42
const span = trace.getSpan(context.active());
43
const traceId = span?.spanContext().traceId;
@@ -50,6 +49,7 @@ const logger = winston.createLogger({
50
49
}
51
return info;
52
})(),
+ winston.format.json(),
53
...(process.env.NODE_ENV !== "production" ? [prettyPrint()] : [])
54
),
55
transports: [
0 commit comments