langchain
langchain copied to clipboard
Make logger instance local to each instance that uses it
Any class with verbose property should now implement an (optional) logger prop (which if not specified defaults to global logger as before).
BaseLogger now inherits from pydantic.BaseModel so that it can easily be used as the type of a property on the other classes which inherit from BaseModel.
@hwchase17 This is a first step towards being able to eg. run multiple independent agents in the same python process logging to different places.
Closing this