Skip to content

Commit 252f5a4

Browse files
committed
chore: adds environment to logger config
1 parent e851de8 commit 252f5a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/javascript/fullstack_demo/src/util/server-logger.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export class WinstonLogger implements Logger {
1616
format((info) => {
1717
const headerList = headers();
1818
info.correlationId = headerList.get('x-correlation-id');
19+
info.environment = process.env.NODE_ENV;
1920
return info;
2021
})(),
2122
timestamp(),

0 commit comments

Comments
 (0)