-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from venkatbvc/log_to_file_with_rotation
Add support for file-based configuration of logging increments #minor
- Loading branch information
Showing
7 changed files
with
270 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
version: 1 | ||
disable_existing_loggers: false | ||
|
||
root: | ||
level: DEBUG | ||
handlers: [console] | ||
|
||
handlers: | ||
console: | ||
class: logging.StreamHandler | ||
level: DEBUG | ||
formatter: JSON | ||
|
||
formatters: | ||
JSON: | ||
(): logger.JsonFormatter | ||
format: '%(levelname)s %(message)s' | ||
rename_fields: { | ||
"message": "msg", | ||
"levelname": "level" | ||
} | ||
LOGFMT: | ||
(): logger.LogfmtFormatter | ||
keys: [ | ||
"time", | ||
"level", | ||
"msg" | ||
] | ||
mapping: { | ||
"time": "asctime", | ||
"level": "levelname", | ||
"msg": "message" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters