Commit f508f795 authored by erdnaxe's avatar erdnaxe 🎇

Colors!

parent 2437b2da
...@@ -64,7 +64,15 @@ def write_calendar_from_dav(f, dav_components): ...@@ -64,7 +64,15 @@ def write_calendar_from_dav(f, dav_components):
# Configure logging system # Configure logging system
logging.basicConfig(level=logging.INFO) logging.addLevelName(logging.INFO,
"\033[1;36m%s\033[1;0m" % logging.getLevelName(logging.INFO))
logging.addLevelName(logging.WARNING,
"\033[1;103m%s\033[1;0m" % logging.getLevelName(logging.WARNING))
logging.addLevelName(logging.ERROR,
"\033[1;41m%s\033[1;0m" % logging.getLevelName(logging.ERROR))
logging.basicConfig(
level=logging.INFO,
format='\033[1;90m%(asctime)s\033[1;0m %(levelname)s %(message)s')
# Load user configuration, user components then write calendar # Load user configuration, user components then write calendar
configuration = Configuration('config.yml') configuration = Configuration('config.yml')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment