Skip to content

add facility to provide (program) defaults to logging extension#61

Open
samjacobson wants to merge 1 commit intoaliles:masterfrom
samjacobson:master
Open

add facility to provide (program) defaults to logging extension#61
samjacobson wants to merge 1 commit intoaliles:masterfrom
samjacobson:master

Conversation

@samjacobson
Copy link
Copy Markdown

Provide the ability to do this:

@begin.logging(format='%(asctime)s %(levelname)s %(message)s', level='DEBUG')

The old @begin.logging still works as before.

@samjacobson
Copy link
Copy Markdown
Author

I've used the same keyword names as logging.basicConfig. The alternative would be to use the same names as the generated command line arguments (e.g. logfmt instead of format).

I can change it to those if preferred.

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