[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:
Jeremy Evans 2019-11-17 17:34:56 -08:00 коммит произвёл Hiroshi SHIBATA
Родитель 38722fa179
Коммит 7a1c56f978
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -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+::