This commit is contained in:
David Arranz 2024-09-08 22:03:29 +02:00
parent 53942e7fef
commit 904e30ebf8
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View File

@ -11,6 +11,7 @@ npm-debug.log
build/ build/
dist/ dist/
log/
client/.parcel-cache client/.parcel-cache
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*

View File

@ -48,6 +48,7 @@ function initLogger(rTracer) {
transports: [ transports: [
new DailyRotateFile({ new DailyRotateFile({
dirname: "./log",
filename: "error-%DATE%.log", filename: "error-%DATE%.log",
datePattern: "YYYY-MM-DD", datePattern: "YYYY-MM-DD",
utc: true, utc: true,
@ -56,6 +57,7 @@ function initLogger(rTracer) {
maxFiles: "1d", maxFiles: "1d",
}), }),
new DailyRotateFile({ new DailyRotateFile({
dirname: "./log",
filename: "debug-%DATE%.log", filename: "debug-%DATE%.log",
datePattern: "YYYY-MM-DD", datePattern: "YYYY-MM-DD",
utc: true, utc: true,