This commit is contained in:
parent
b7814eb8f2
commit
d3bd60576f
@ -21,14 +21,17 @@ if (isProd) {
|
||||
transports.push(
|
||||
new winston.transports.DailyRotateFile({
|
||||
level: "info",
|
||||
filename: "/home/work/log/egg-info-%DATE%.log",
|
||||
filename:
|
||||
process.env.LOG_FILE_NAME_INFO ?? "/home/work/log/egg-info-%DATE%.log",
|
||||
...config,
|
||||
})
|
||||
)
|
||||
transports.push(
|
||||
new winston.transports.DailyRotateFile({
|
||||
level: "debug",
|
||||
filename: "/home/work/log/egg-debug-%DATE%.log",
|
||||
filename:
|
||||
process.env.LOG_FILE_NAME_DEBUG ??
|
||||
"/home/work/log/egg-debug-%DATE%.log",
|
||||
...config,
|
||||
})
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user