-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Improve default logging format #5214
Copy link
Copy link
Closed
Labels
plugin: loggingrelated to the logging builtin pluginrelated to the logging builtin plugintype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Metadata
Metadata
Assignees
Labels
plugin: loggingrelated to the logging builtin pluginrelated to the logging builtin plugintype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently it is:
I think
name(module name) would be very useful here, instead of just the base filename.(It might also be good to have the relative path there (maybe at the end), but it is usually still very long (but e.g.
$VIRTUAL_ENVcould be substituted therein))Currently it would look like this:
Using
DEFAULT_LOG_FORMAT = "%(levelname)-8s %(name)s:%(filename)s:%(lineno)d %(message)s"instead: