Open Akhilesh53 opened 4 months ago
Hey @Akhilesh53,
Would you be able to provide a reproducible example that we can run and debug locally?
Hi @r-hang
I am using this logger configuration. I cannot share the log file that has production data. But what is happening is when a log is made of threshold size, and a new log file is created. Within this interval, a few logs are missed.
Means: Some parts of the same request are present in the previous file (completed log file) and some parts are in the newly created log file. But logs within this are missed.
maxLogFileSize = 40 maxLogFileAge = 30 maxLogFiles = 100
Describe the bug After rotation (creation of a new file) the very first log line is skipped and is not showing in log file.
To Reproduce `func initiliaselogger() { level := getLevel(env.ENV.LOG_LEVEL)
}`
Expected behavior After the creation of a new file (after rotation), the very line of the log is skipped.
Pls let me know if I have to change anything in the configuration while initializing the logger.