-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement to Langchain.logger #790
Comments
☝️ Fixed by #796
For that one ☝️ , I'll do in a different PR, since I still haven't gone through all the clients. |
Would also be great if langchain's logger was compatible with the rails logger. Currently trying to assign the rails logger to the langchain logger throws an error: NoMethodError: undefined method `debug?' for nil |
Hey @ajsharp, is this how you're assigning it? [1] pry(main)> Langchain.logger = Rails.logger
=> #<ActiveSupport::Logger:0x0000000144e950f8
...
[2] pry(main)> Langchain.logger.debug?
=> true |
Sorry about this @andreibondarev -- this was an error on my part -- I was setting the logger in |
Is your feature request related to a problem? Please describe.
progname
to set "[Langchain.rb]" in front of the logs.The text was updated successfully, but these errors were encountered: