25 lines
496 B
Python
25 lines
496 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Author: J.A. de Jong
|
|
|
|
Description: configure the logging of messages
|
|
"""
|
|
import logging, sys
|
|
# __all__ = ['configureLogging']
|
|
|
|
# global_loglevel = None
|
|
|
|
# def configureLogging(level=None):
|
|
|
|
# # Oh yeah, one global variable
|
|
# global global_loglevel
|
|
# if level is None:
|
|
# level is global_loglevel
|
|
# else:
|
|
# global_loglevel = level
|
|
|
|
# if level is None:
|
|
# raise RuntimeError('Log level has not yet been set application wide')
|
|
|
|
|