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

Unable to use the KwargLogger(formatter=my_custom_formatter) #1

Open
symbolix opened this issue Oct 5, 2016 · 0 comments
Open

Unable to use the KwargLogger(formatter=my_custom_formatter) #1

symbolix opened this issue Oct 5, 2016 · 0 comments

Comments

@symbolix
Copy link

symbolix commented Oct 5, 2016

Hi,

Thanks for this amazing logger module. I tried some of the functionalities, however, the bit where we can assign a custom function to the Logger class formatter is not very clear. Could you please help me understand this with a simple example.

By function, do we mean an ordinary function?

def my_line_formatter(msg='message', kwargs={'a': 1, 'b': 2}, fmt='{}={}'):
    pass

Is this going to change the way the extra information is displayed?

Thanks.

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