-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(backend): do not override log formating on startup
enable color config in logconfig file, if neccesary
- Loading branch information
1 parent
f675253
commit 4e66b82
Showing
2 changed files
with
10 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
version: 1 | ||
formatters: | ||
simple: | ||
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s' | ||
color: | ||
"()": "colorlog.ColoredFormatter" | ||
format: '%(asctime)s %(log_color)s%(levelname)s%(reset)s %(yellow)s%(name)-15s%(reset)s %(blue)s%(message)s%(reset)s' | ||
datefmt: '%Y-%m-%d %H:%M:%S' | ||
default: | ||
format: '%(asctime)s %(levelname)-8s %(name)-15s %(message)s' | ||
datefmt: '%Y-%m-%d %H:%M:%S' | ||
handlers: | ||
console: | ||
class: logging.StreamHandler | ||
level: DEBUG | ||
formatter: simple | ||
formatter: color | ||
stream: ext://sys.stdout | ||
loggers: | ||
upnpavcontrol: | ||
level: DEBUG | ||
upnpavcontrol.core.discovery: | ||
level: WARNING | ||
root: | ||
level: INFO | ||
handlers: [console] |