Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more
WEBrick::BasicLog
# File webrick/log.rb, line 77 def initialize(log_file=nil, level=nil) super(log_file, level) @time_format = "[%Y-%m-%d %H:%M:%S]" end
# File webrick/log.rb, line 82 def log(level, data) tmp = Time.now.strftime(@time_format) tmp << " " << data super(level, tmp) end
This page was generated for Ruby 1.8.7
Ruby-doc.org is provided by James Britt and Neurogami. Hack your world. Feed your head. Live curious.
Generated with Ruby-doc Rdoc Generator 0.44.0.