File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -547,6 +547,16 @@ def fatal!; self.level = FATAL; end
547
547
# entries are to be written to the given stream.
548
548
# - +nil+ or +File::NULL+: no entries are to be written.
549
549
#
550
+ # Argument +shift_age+ must be on of:
551
+ #
552
+ # - The number of log files to be in the rotation.
553
+ # See {Size-Based Rotation}[rdoc-ref:Logger@Size-Based+Rotation].
554
+ # - A string period indicator.
555
+ # See {Periodic Rotation}[rdoc-ref:Logger@Periodic+Rotation].
556
+ #
557
+ # Argument +shift_size+ is the maximum size (in bytes) of each log file.
558
+ # See {Size-Based Rotation}[rdoc-ref:Logger@Size-Based+Rotation].
559
+ #
550
560
# Examples:
551
561
#
552
562
# Logger.new('t.log')
@@ -566,14 +576,18 @@ def fatal!; self.level = FATAL; end
566
576
#
567
577
# - +formatter+: sets the entry formatter; default is +nil+.
568
578
# See {formatter=}[Logger.html#attribute-i-formatter].
579
+ #
569
580
# - +datetime_format+: sets the format for entry timestamp;
570
581
# default is +nil+.
571
582
# See #datetime_format=.
583
+ #
572
584
# - +binmode+: sets whether the logger writes in binary mode;
573
585
# default is +false+.
586
+ #
574
587
# - +shift_period_suffix+: sets the format for the filename suffix
575
588
# for periodic log file rotation; default is <tt>'%Y%m%d'</tt>.
576
589
# See {Periodic Rotation}[rdoc-ref:Logger@Periodic+Rotation].
590
+ #
577
591
# - +reraise_write_errors+: An array of exception classes, which will
578
592
# be reraised if there is an error when writing to the log device.
579
593
# The default is to swallow all exceptions raised.
You can’t perform that action at this time.
0 commit comments