class WEBrick::Log
A logging class that prepends a timestamp to each message.
Attributes
Format of the timestamp which is applied to each logged line. The default is "[%Y-%m-%d %H:%M:%S]"
Format of the timestamp which is applied to each logged line. The default is "[%Y-%m-%d %H:%M:%S]"
Public Class Methods
(?BasicLog::log_file log_file, ?Integer? level) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/webrick-1.9.2/lib/webrick/log.rb, line 143 def initialize(log_file=nil, level=nil) super(log_file, level) @time_format = "[%Y-%m-%d %H:%M:%S]" end
Same as BasicLog#initialize
You can set the timestamp format through time_format
Same as BasicLog#initialize
You can set the timestamp format through time_format
Calls superclass method
WEBrick::BasicLog::new