Ruby Logger Functions
EditRocket provides the following information on Logger functions in the Ruby source code builder.
add(severity, message = nil, progname = nil, &block) - " Logger#add(severity, message = nil, progname = nil) { ... }\n"
close() - Close the logging device.
datetime_format=(datetime_format) - Logging date-time format (string passed to strftime).
datetime_format() -
debug?() - Returns true iff the current severity level allows for the printing of DEBUG messages.
debug(progname = nil, &block) - Log a DEBUG message.
error?() - Returns true iff the current severity level allows for the printing of ERROR messages.
error(progname = nil, &block) - Log an ERROR message.
fatal?() - Returns true iff the current severity level allows for the printing of FATAL messages.
fatal(progname = nil, &block) - Log a FATAL message.
info?() - Returns true iff the current severity level allows for the printing of INFO messages.
info(progname = nil, &block) - Log an INFO message.
log(severity, message = nil, progname = nil, &block) - "Alias for #add"
new(logdev, shift_age = 0, shift_size = 1048576) - " Logger.new(name, shift_age = 7, shift_size = 1048576)\n Logger.new(name, shift_age = 'weekly')\n"
unknown(progname = nil, &block) - Log an UNKNOWN message. This will be printed no matter what the logger level.
warn?() - Returns true iff the current severity level allows for the printing of WARN messages.
warn(progname = nil, &block) - Log a WARN message.