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.9.2
Ruby-doc.org is managed by James Britt and Neurogami. Live curious.
Generated with the Rubydoc Rdoc Generator 0.9.3.