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

Configure proper logging #10

Open
lanery opened this issue May 15, 2024 · 0 comments
Open

Configure proper logging #10

lanery opened this issue May 15, 2024 · 0 comments

Comments

@lanery
Copy link
Collaborator

lanery commented May 15, 2024

          Yeah, agreed. FWIW, what I've done in the past is to define a `configure_logging` function somewhere that uses `logging.getLogger()` to get the root logger and configure it (e.g. specify formatters and default logging levels). This function can then be called from every public-facing entrypoint (e.g. CLI script). Example [here](https://github.com/czbiohub-sf/opencell-portal-pub/blob/3bd2e218c7af5bf9081c2e5e218f51c2b55e8f10/opencell/cli/utils.py#L34).

Originally posted by @keithchev in #9 (comment)

@lanery lanery mentioned this issue May 15, 2024
3 tasks
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

1 participant