xLog icon indicating copy to clipboard operation
xLog copied to clipboard

XLog not support max logFileSize in storage

Open tianxiake opened this issue 4 years ago • 3 comments

if I want write logFile max size is 10M,xLog don't support this? It is my looking in the wrong!

tianxiake avatar Jul 19 '21 08:07 tianxiake

Use a FileSizeBackupStrategy2, which will limit each log file to specific size.

xLog write log in append mode, not in rolling mode.

elvishew avatar Jul 19 '21 13:07 elvishew

In my case,I want all log file max size in 10M,

tianxiake avatar Jul 20 '21 01:07 tianxiake

In my case,I want all log file max size in 10M,

So you can new FileSizeBackupStrategy2(10*1024*1024), is it not what you want?

Any further question, you can add QQ group(in readme_zh.md) to ask for help.

elvishew avatar Jul 20 '21 03:07 elvishew