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
......@@ -753,12 +753,12 @@ class CycleControl(dict):
def StartLogger():
def StartLogger(level=logging.INFO):
""" start the logging of messages to screen"""
# 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',
datefmt = '%Y-%m-%d %H:%M:%S')
......
Supports Markdown
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