close

close() Instance Public methods Closes the logger (also closes the log device associated to the logger)

<<

<<(obj) Instance Public methods Synonym for log(INFO, obj.to_s)

new

new(log_file=nil, level=nil) Class Public methods Initializes a new logger for log_file that outputs messages at level or higher. log_file can be a filename, an IO-like object that responds to or nil which outputs to $stderr. If no level is given INFO is chosen by default

setup_params

setup_params(config, req, res) Instance Public methods This format specification is a subset of mod_log_config of Apache: %a Remote IP address %b Total response size %e{variable} Given variable in ENV %f Response filename %h Remote host name %{header}i Given request header %l Remote logname, always â-â %m Request method %{attr}n Given request attribute from req.attributes %{header}o Given response header %p Server's request port %{format}p The can

format

format(format_string, params) Instance Public methods Formats params according to format_string which is described in setup_params.

escape

escape(data) Instance Public methods Escapes control characters in data

weakref_alive?

weakref_alive?() Instance Public methods Returns true if the referenced object is still alive.

new

new(orig) Class Public methods Creates a weak reference to orig Raises an ArgumentError if the given orig is immutable, such as Symbol, Fixnum, or Float.

stat

stat(*args, &block) Instance Public methods Alias for: process

search

search(meth, base, *rest) Instance Public methods