Hi all,
Can we specify the retention days or file size limit for the log files?
Thanks.
Regards,
Simon.
Hi all,
Can we specify the retention days or file size limit for the log files?
Thanks.
Regards,
Simon.
Hi Support,
Thanks for information shared, and I have a better understanding of the log settings now.
After my test, I got a different result with the following settings:
LOGGER_TRANSPORT=console,dailyRotateFile
LOGGER_BASE_PATH=storage/logs
LOGGER_LEVEL=trace
LOGGER_MAX_FILES=3d
LOGGER_MAX_SIZE=10k
LOGGER_FORMAT=logfmt
The files are not rotated at 10kbytes.
Yet, it will be rotated when the setting is LOGGER_MAX_SIZE=10240.
Not sure if this is a bug?
P/S: I performed the test on version 1.7.0-beta.13.
Thanks.
Regards,
Simon.