Skip to content

print the formatter string if present #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

russau
Copy link

@russau russau commented Dec 3, 2020

Hello @mickeyperlstein - thanks for creating this!

I've added a tiny feature to print the formatting string if it is present. It's working for me, I see output like this:

+ [application         ] {logging.Logger} {INFO}
-------------------------
    -filters=[]
    -name=application
    -level=20
    -parent=<RootLogger root (WARNING)>
    -propagate=True
    -handlers=[<StreamHandler <stderr> (NOTSET)>]
    -disabled=False
    -_cache={}
    -manager=<logging.Manager object at 0x1020717f0>
     +++logging.StreamHandler {NOTSET}
    -filters=[]
    -_name=None
    -level=0
    -formatter=[%(asctime)s] %(levelname)s in %(module)s: %(message)s
    -lock=<unlocked _thread.RLock object owner=0 count=0 at 0x102583c60>
    -stream=<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>

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.

1 participant