module Interface
The public logger interface.
Definitions
def self.local
Create a new (thread local) logger instance.
Implementation
def self.local
Config::DEFAULT.make_logger
end
def logger
Get the current logger instance.
Implementation
def logger
Interface.instance
end
def logger= instance
Set the current logger instance.
The current logger instance is assigned per-fiber.
Implementation
def logger= instance
Interface.instance= instance
end
def debug(...)
Emit a debug log message.
Implementation
def debug(...)
Interface.instance.debug(...)
end
def info(...)
Emit an informational log message.
Implementation
def info(...)
Interface.instance.info(...)
end
def warn(...)
Emit a warning log message.
Implementation
def warn(...)
Interface.instance.warn(...)
end
def error(...)
Emit an error log message.
Implementation
def error(...)
Interface.instance.error(...)
end
def fatal(...)
Emit a fatal log message.
Implementation
def fatal(...)
Interface.instance.fatal(...)
end
def call(...)
Emit a log message with arbitrary arguments and options.
Implementation
def call(...)
Interface.instance.call(...)
end