-
-
Notifications
You must be signed in to change notification settings - Fork 23.2k
Added winston logging #469
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
Added winston logging #469
Conversation
matthias
commented
Jul 3, 2023
- use logger.xxx instead of console.xxx
- added express middleware logging (using jsonl)
- added LOG_PATH as environment variable
- more configs postponed for later iteration
- use logger.xxx instead of console.xxx - added express middleware logging (using jsonl) - added LOG_PATH as environment variable - more configs postponed for later iteration
|
Created a new clean merge |
matthias
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that you also want to respect the DEBUG setting.
But not sure if the DEBUG flag is the right one to enable / disable request logging at all. Even in a production environment you want HTTP request logging.
I would suggest to move this into the logger.ts / expressRequestLogger -> so it can be configured via config.
|
good point @matthias do you reckon we should add another env var like |
|
If the status is fine for you - I would go ahead and also apply this to /components What's the best way (git wise) to do this. Create a sub-branch from this status / create a new branch / keep on working on this branch? Thanks for your advice here. And: The main goal behind introducing winston is to get better chat / chain logging. Any ideas in this direction I should be aware off? Otherwise I would try and come up with an approach. |
/logs was in /packages -> moved it to project root (one level up)
|
You can create another branch base from this branch. Are you trying to log the output of each component? I was trying to see if we can add the logs output from langchain when the DEBUG is true, as currently they are just printed on the terminal/console |
|
@matthias I reverted the DEBUG changes and allow logger by default. Let me know if you are still working on this, if not we can merge this and open another PR for the logger on components |
|
Yes you can merge it ... logger on compnents / flows should be another PR imo. |