Skip to content
Discussion options

You must be logged in to vote

The troubleshooting docs had an error - Dry::Logger::Dispatcher doesn't have a level= setter. I've fixed the docs. Thanks for reporting it @sivagollapalli

Here are your options for debug logging:

1. Tail the log file (simplest)

tail -f log/development.log

2. Redirect to stdout via environment variable

DSPY_LOG=/dev/stdout ruby your_script.rb

3. Configure debug level with stdout

DSPy.configure do |config|
  config.logger = Dry.Logger(:dspy, formatter: :string) do |s|
    s.add_backend(level: :debug, stream: $stdout)
  end
end

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vicentereig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants