Skip to content
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

No way to configure logging via waitress-serve? #133

Closed
mrmachine opened this issue Aug 3, 2016 · 3 comments
Closed

No way to configure logging via waitress-serve? #133

mrmachine opened this issue Aug 3, 2016 · 3 comments

Comments

@mrmachine
Copy link

It seems I must create my own wrapper around waitress.serve in order to configure logging?

@digitalresistor
Copy link
Member

digitalresistor commented Aug 9, 2016

Yes, or have your application set up the Python logging system.

@1zg12
Copy link

1zg12 commented May 18, 2020

waitress is using the default logging.basicConfig(), which might not be suitable for all, and could affect your own logging set up as well.
Instead, you can turn the waitress logging off completely, by passing in the _quiet parameter, like

serve(app, _quiet=True)

then you can use your own logging setup.

@digitalresistor
Copy link
Member

That _quiet parameter is a testing shim, and is not public API.

If you don't want Python logging it is a better idea to setup the Python loggers yourself, in which case the call to basicConfig won't actually do anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants