Class: Agentic::Logger

Inherits:
Logger
  • Object
show all
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

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(message)
  instance.debug(message)
end

.error(message) ⇒ Object



37
38
39
# File 'lib/agentic/logger.rb', line 37

def self.error(message)
  instance.error(message)
end

.info(message) ⇒ Object



33
34
35
# File 'lib/agentic/logger.rb', line 33

def self.info(message)
  instance.info(message)
end