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

Don't add logging handler if one already exists. #2917

Merged
merged 2 commits into from Feb 13, 2013

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Feb 12, 2013

If a default handler already exists, it is expected that IPython is embedded in an application that uses logging. In that case IPython should not provide its own logging handler, but rely on the embedding application's handlers.

Use case: remove the "To connect another client to this kernel..." messages when embedding IPython in an application that uses logging (by providing a filter to the root handler).

If a default handler already exists, it is expected that IPython is embedded in
an application that uses logging.  In that case IPython should not provide its
own logging handler, but rely on the embedding application's handlers.
The default is to log to stdout using a StreaHandler. The log level
starts at loggin.WARN, but this can be adjusted by setting the
``log_level`` attribute.
The default is to log to stdout using a StreamHandler, if no default
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you want to fix this typo as well? The default is stderr, not stdout.

@minrk
Copy link
Member

minrk commented Feb 13, 2013

thanks, merging.

minrk added a commit that referenced this pull request Feb 13, 2013
Don't add logging handler if one already exists.
@minrk minrk merged commit f7c9350 into ipython:master Feb 13, 2013
@anntzer anntzer deleted the logging-checkhandler branch February 13, 2013 18:52
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Don't add logging handler if one already exists.
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

Successfully merging this pull request may close these issues.

None yet

2 participants