aboutsummaryrefslogtreecommitdiffstats
path: root/lib/logger.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-12 11:54:16 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-12 12:27:40 +0900
commit3539da64fc42d6eb76f1d4c3ccd219c3259ecd8b (patch)
tree698ecdcf32aab56aa3305bb2637ca8115bcaf4de /lib/logger.rb
parent2b5d4fe28dc548f782be8d71de8b472000e6b38e (diff)
downloadruby-3539da64fc42d6eb76f1d4c3ccd219c3259ecd8b.tar.gz
[DOC] Replace the external URIs to docs with rdoc-ref
Diffstat (limited to 'lib/logger.rb')
-rw-r--r--lib/logger.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/logger.rb b/lib/logger.rb
index cafebc510a..7e4dacc911 100644
--- a/lib/logger.rb
+++ b/lib/logger.rb
@@ -147,7 +147,7 @@ require_relative 'logger/errors'
# when the entry is created.
#
# The logged timestamp is formatted by method
-# {Time#strftime}[https://docs.ruby-lang.org/en/master/Time.html#method-i-strftime]
+# {Time#strftime}[rdoc-ref:Time#strftime]
# using this format string:
#
# '%Y-%m-%dT%H:%M:%S.%6N'
@@ -365,7 +365,7 @@ require_relative 'logger/errors'
# You can set a different format using create-time option
# +shift_period_suffix+;
# see details and suggestions at
-# {Time#strftime}[https://docs.ruby-lang.org/en/master/Time.html#method-i-strftime].
+# {Time#strftime}[rdoc-ref:Time#strftime].
#
class Logger
_, name, rev = %w$Id$
@@ -425,7 +425,7 @@ class Logger
# Argument +datetime_format+ should be either of these:
#
# - A string suitable for use as a format for method
- # {Time#strftime}[https://docs.ruby-lang.org/en/master/Time.html#method-i-strftime].
+ # {Time#strftime}[rdoc-ref:Time#strftime].
# - +nil+: the logger uses <tt>'%Y-%m-%dT%H:%M:%S.%6N'</tt>.
#
def datetime_format=(datetime_format)
@@ -453,7 +453,7 @@ class Logger
# The proc should return a string containing the formatted entry.
#
# This custom formatter uses
- # {String#dump}[https://docs.ruby-lang.org/en/master/String.html#method-i-dump]
+ # {String#dump}[rdoc-ref:String#dump]
# to escape the message string:
#
# logger = Logger.new($stdout, progname: 'mung')