mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
server: add support for log rotation
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
This commit is contained in:
@@ -188,6 +188,10 @@ Logging:
|
||||
Specify 'stdout' or 'stderr' to skip journald logging even when running under systemd, or list of comma separated output targets.
|
||||
--log-level 'info'
|
||||
Configures log level. Only supports debug, info, warn, error, panic, or fatal.
|
||||
--enable-log-rotation 'false'
|
||||
Enable log rotation of a single log-outputs file target.
|
||||
--log-rotation-config-json '{"maxsize": 100, "maxage": 0, "maxbackups": 0, "localtime": false, "compress": false}'
|
||||
Configures log rotation if enabled with a JSON logger config. MaxSize(MB), MaxAge(days,0=no limit), MaxBackups(0=no limit), LocalTime(use computers local time), Compress(gzip)".
|
||||
|
||||
v2 Proxy (to be deprecated in v4):
|
||||
--proxy 'off'
|
||||
|
||||
Reference in New Issue
Block a user