mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/logger] Document that shift_age of 0 disables log file rotation
Fixes Ruby Bug 16349. https://github.com/ruby/logger/commit/b1b6d06f2d
This commit is contained in:
parent
38722fa179
commit
7a1c56f978
1 changed files with 4 additions and 3 deletions
|
@ -353,10 +353,11 @@ class Logger
|
|||
# +STDOUT+, +STDERR+, or an open file).
|
||||
# +shift_age+::
|
||||
# Number of old log files to keep, *or* frequency of rotation (+daily+,
|
||||
# +weekly+ or +monthly+). Default value is 0.
|
||||
# +weekly+ or +monthly+). Default value is 0, which disables log file
|
||||
# rotation.
|
||||
# +shift_size+::
|
||||
# Maximum logfile size in bytes (only applies when +shift_age+ is a number).
|
||||
# Defaults to +1048576+ (1MB).
|
||||
# Maximum logfile size in bytes (only applies when +shift_age+ is a positive
|
||||
# Integer). Defaults to +1048576+ (1MB).
|
||||
# +level+::
|
||||
# Logging severity threshold. Default values is Logger::DEBUG.
|
||||
# +progname+::
|
||||
|
|
Loading…
Reference in a new issue