Class: Agentic::Logger
- Inherits:
-
Logger
- Object
- Logger
- Agentic::Logger
- Defined in:
- lib/agentic/logger.rb
Defined Under Namespace
Classes: SimpleFormatter
Constant Summary collapse
- COLORS =
{ "FATAL" => :red, "ERROR" => :red, "WARN" => :orange, "INFO" => :yellow, "DEBUG" => :white }
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(*args) ⇒ Logger
Returns a new instance of Logger.
28 29 30 31 |
# File 'lib/agentic/logger.rb', line 28 def initialize(*args) super @formatter = SimpleFormatter < ::Logger::Formatter end |
Class Method Details
.debug(message) ⇒ Object
41 42 43 |
# File 'lib/agentic/logger.rb', line 41 def self.debug() instance.debug() end |
.error(message) ⇒ Object
37 38 39 |
# File 'lib/agentic/logger.rb', line 37 def self.error() instance.error() end |
.info(message) ⇒ Object
33 34 35 |
# File 'lib/agentic/logger.rb', line 33 def self.info() instance.info() end |