Skip to content
Snippets Groups Projects
Commit 1d40c057 authored by Peters, Wouter's avatar Peters, Wouter
Browse files

logger gets a default value, but is changeable through an optional argument now

parent dd2988d6
No related branches found
No related tags found
No related merge requests found
...@@ -753,12 +753,12 @@ class CycleControl(dict): ...@@ -753,12 +753,12 @@ class CycleControl(dict):
def StartLogger(): def StartLogger(level=logging.INFO):
""" start the logging of messages to screen""" """ start the logging of messages to screen"""
# start the logging basic configuration by setting up a log file # start the logging basic configuration by setting up a log file
logging.basicConfig(level = logging.INFO, logging.basicConfig(level = level,
format = ' [%(levelname)-7s] (%(asctime)s) py-%(module)-20s : %(message)s', format = ' [%(levelname)-7s] (%(asctime)s) py-%(module)-20s : %(message)s',
datefmt = '%Y-%m-%d %H:%M:%S') datefmt = '%Y-%m-%d %H:%M:%S')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment