aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasataka Pocke Kuwabara <kuwabara@pocke.me>2020-03-31 20:06:23 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-11 14:22:32 +0900
commitc1d1f92e8a18c34f4ef2361d4cd4fdae89d9d2af (patch)
tree0e7b6903a3bfb62f49616488cd44a8dd313e07a3
parentc7da0fcb39b837a253f5e6d2d666637a390301e6 (diff)
downloadruby-c1d1f92e8a18c34f4ef2361d4cd4fdae89d9d2af.tar.gz
[ruby/logger] Mention `File::Null` in Logger#new document
https://github.com/ruby/logger/commit/2e772770be
-rw-r--r--lib/logger.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/logger.rb b/lib/logger.rb
index b2086dc8d3..5e88574aa5 100644
--- a/lib/logger.rb
+++ b/lib/logger.rb
@@ -350,7 +350,8 @@ class Logger
#
# +logdev+::
# The log device. This is a filename (String), IO object (typically
- # +STDOUT+, +STDERR+, or an open file) or nil (it writes nothing).
+ # +STDOUT+, +STDERR+, or an open file), +nil+ (it writes nothing) or
+ # +File::NULL+ (same as +nil+).
# +shift_age+::
# Number of old log files to keep, *or* frequency of rotation (+daily+,
# +weekly+ or +monthly+). Default value is 0, which disables log file