module Console::Interface
The public logger interface.
Public Class Methods
Source
# File vendor/bundle/ruby/3.4.0/gems/console-1.30.2/lib/console/interface.rb, line 15 def self.local Config::DEFAULT.make_logger end
Create a new (thread local) logger instance.
Public Instance Methods
Source
# File vendor/bundle/ruby/3.4.0/gems/console-1.30.2/lib/console/interface.rb, line 57 def call(...) Interface.instance.call(...) end
Emit a log message with arbitrary arguments and options.
Source
# File vendor/bundle/ruby/3.4.0/gems/console-1.30.2/lib/console/interface.rb, line 32 def debug(...) Interface.instance.debug(...) end
Emit a debug log message.
Source
# File vendor/bundle/ruby/3.4.0/gems/console-1.30.2/lib/console/interface.rb, line 47 def error(...) Interface.instance.error(...) end
Emit an error log message.
Source
# File vendor/bundle/ruby/3.4.0/gems/console-1.30.2/lib/console/interface.rb, line 52 def fatal(...) Interface.instance.fatal(...) end
Emit a fatal log message.
Source
# File vendor/bundle/ruby/3.4.0/gems/console-1.30.2/lib/console/interface.rb, line 37 def info(...) Interface.instance.info(...) end
Emit an informational log message.
Source
# File vendor/bundle/ruby/3.4.0/gems/console-1.30.2/lib/console/interface.rb, line 20 def logger Interface.instance end
Get the current logger instance.
Source
# File vendor/bundle/ruby/3.4.0/gems/console-1.30.2/lib/console/interface.rb, line 27 def logger= instance Interface.instance= instance end
Set
the current logger instance.
The current logger instance is assigned per-fiber.
Source
# File vendor/bundle/ruby/3.4.0/gems/console-1.30.2/lib/console/interface.rb, line 42 def warn(...) Interface.instance.warn(...) end
Emit a warning log message.