Class: DSPy::Subscribers::LoggerSubscriber
- Inherits:
-
Object
- Object
- DSPy::Subscribers::LoggerSubscriber
- Extended by:
- T::Sig
- Defined in:
- lib/dspy/subscribers/logger_subscriber.rb
Overview
Logger subscriber that provides detailed logging based on instrumentation events Subscribes to DSPy events and logs relevant information for debugging and monitoring
Instance Method Summary collapse
-
#initialize(logger: nil) ⇒ LoggerSubscriber
constructor
A new instance of LoggerSubscriber.
Constructor Details
#initialize(logger: nil) ⇒ LoggerSubscriber
Returns a new instance of LoggerSubscriber.
11 12 13 14 |
# File 'lib/dspy/subscribers/logger_subscriber.rb', line 11 def initialize(logger: nil) @explicit_logger = T.let(logger, T.nilable(T.any(Logger, Dry::Logger::Dispatcher))) setup_event_subscriptions end |