Closed ghost closed 3 years ago
@Zaseth Additional information might be valuable here. Can you please post your configuration object, relevant node/winston/winston-daily-rotate-file verions, and a complete stack trace?
@mattberther I sadly don't have a stack trace... We're using v4.5.0 and for logging things we do the following:
const textFormat = printf(({ level, message, timestamp }) => {
return `[\x1b[36m${timestamp}\x1b[0m] [${level}] \x1b[35m>\x1b[0m ${message}`
})
const { debug } = createLogger({
levels: { debug: 7 },
transports: [
new transports.DailyRotateFile({
level: 'debug',
maxFiles: '1d',
filename: `./logs/${process.argv[2]}/debug@%DATE%.log`,
datePattern: 'D-M-YYYY',
format: combine(timestamp({ format: 'HH:mm:ss' }), json())
}),
new transports.Console({
level: 'debug',
format: combine(colorize(), timestamp({ format: 'HH:mm:ss' }), textFormat)
})
]
})
Any news on this?
I have been unable to reproduce this error. If you have a way to reliably reproduce this issue, please provide the smallest possible program that demonstrates this issue. Thank you.
@mattberther I don't have anything to provide other than the following:
I know things would've been better with a stack trace, but none was given and this is all I know. I'm guessing it has something to do with the portable HDD being frozen, disallowing the daily rotate file not to be written. Feel free to close the issue if you want, it hasn't happened ever on our servers so that's a good sign I guess.
Thank you. I'll close out, but please re-open if you have a way to consistently reproduce this problem.
We received the following error on our test service, causing it to crash. We don't know what caused it either. All I can say is that it's on a portable hdd.