From 50581c7f5c50eb057d5c3e0ff091f13799a30976 Mon Sep 17 00:00:00 2001 From: Surav Shrestha <98219089+suravshresth@users.noreply.github.com> Date: Thu, 19 Oct 2023 19:18:25 +0545 Subject: [PATCH] docs fix typo in core/logx/readme.md (#3650) --- core/logx/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/logx/readme.md b/core/logx/readme.md index 1e3bdfb2..1d303ea0 100644 --- a/core/logx/readme.md +++ b/core/logx/readme.md @@ -40,7 +40,7 @@ type LogConf struct { - `Compress`: whether or not to compress log files, only works with `file` mode. - `KeepDays`: how many days that the log files are kept, after the given days, the outdated files will be deleted automatically. It has no effect on `console` mode. - `StackCooldownMillis`: how many milliseconds to rewrite stacktrace again. It’s used to avoid stacktrace flooding. -- `MaxBackups`: represents how many backup log files will be kept. 0 means all files will be kept forever. Only take effect when `Rotation` is `size`. NOTE: the level of option `KeepDays` will be higher. Even thougth `MaxBackups` sets 0, log files will still be removed if the `KeepDays` limitation is reached. +- `MaxBackups`: represents how many backup log files will be kept. 0 means all files will be kept forever. Only take effect when `Rotation` is `size`. NOTE: the level of option `KeepDays` will be higher. Even though `MaxBackups` sets 0, log files will still be removed if the `KeepDays` limitation is reached. - `MaxSize`: represents how much space the writing log file takes up. 0 means no limit. The unit is `MB`. Only take effect when `Rotation` is `size`. - `Rotation`: represents the type of log rotation rule. Default is `daily`. - `daily` rotate the logs by day.