method
new
new(log_file=nil, level=nil)
public
Hide source
# File lib/webrick/log.rb, line 18 def initialize(log_file=nil, level=nil) @level = level || INFO case log_file when String @log = open(log_file, "a+") @log.sync = true @opened = true when NilClass @log = $stderr else @log = log_file # requires "<<". (see BasicLog#log) end end