[前][次][番号順一覧][スレッド一覧]

ruby-changes:59164

From: Jeremy <ko1@a...>
Date: Tue, 10 Dec 2019 21:51:25 +0900 (JST)
Subject: [ruby-changes:59164] 7a1c56f978 (master): [ruby/logger] Document that shift_age of 0 disables log file rotation

https://git.ruby-lang.org/ruby.git/commit/?id=7a1c56f978

From 7a1c56f978907d03876772d942619ec90cbbfa6b Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
Date: Sun, 17 Nov 2019 17:34:56 -0800
Subject: [ruby/logger] Document that shift_age of 0 disables log file rotation

Fixes Ruby Bug 16349.

https://github.com/ruby/logger/commit/b1b6d06f2d

diff --git a/lib/logger.rb b/lib/logger.rb
index bb4f115..f0b99f7 100644
--- a/lib/logger.rb
+++ b/lib/logger.rb
@@ -353,10 +353,11 @@ class Logger https://github.com/ruby/ruby/blob/trunk/lib/logger.rb#L353
   #   +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+::
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]