Skip to content

Commit 6151951

Browse files
committed
add log level to winston
1 parent aef4eff commit 6151951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/utils/src/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import winston from 'winston';
33
const { combine, timestamp, json, errors } = winston.format;
44

55
export const logger = winston.createLogger({
6-
level: 'info',
6+
level: process.env.LOG_LEVEL || 'info',
77
format: combine(timestamp(), json(), errors({ stack: true, cause: true })),
88
transports: [
99
new winston.transports.Stream({

0 commit comments

Comments
 (0)