-
Notifications
You must be signed in to change notification settings - Fork 2.3k
add log_setup_fnc for cli.run_app #4382
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
base: main
Are you sure you want to change the base?
Conversation
davidzhao
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.
ideally this isn't a CLI parameter, but something they could configure inside their agent? should there be a setup_logger_fnc on the cli itself? so they could make all sorts of customizations as needed.
also I'm not sure if the request is for colored logging.. but rather production systems prefer to parse text instead of JSON
users can remove the json handler in entrypoint but the original issue mentioned that
maybe we can make it a callback of AgentServer or |
exactly, entrypoint is a bit too late, the framework logger has already been used by that point.. IMO giving users control is the right path, instead of automatically configuring colored logger |
This reverts commit 9af4c6a.
|
I'm wondering if we should just have a flag that disable any automatic logging configuration from the framework |
close #4339
for example