Class: RailsAIPromptable::Logger
- Inherits:
-
Object
- Object
- RailsAIPromptable::Logger
- Defined in:
- lib/rails_ai_promptable/logger.rb
Instance Method Summary collapse
- #error(msg) ⇒ Object
- #info(msg) ⇒ Object
-
#initialize(io = $stdout) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(io = $stdout) ⇒ Logger
Returns a new instance of Logger.
7 8 9 |
# File 'lib/rails_ai_promptable/logger.rb', line 7 def initialize(io = $stdout) @logger = ::Logger.new(io) end |
Instance Method Details
#error(msg) ⇒ Object
15 16 17 |
# File 'lib/rails_ai_promptable/logger.rb', line 15 def error(msg) @logger.error(msg) end |
#info(msg) ⇒ Object
11 12 13 |
# File 'lib/rails_ai_promptable/logger.rb', line 11 def info(msg) @logger.info(msg) end |