* Logging is always initialized if importing the whole package * Support switching to DEBUG mode * Support changing the log dir (and optionally log name)
18 lines
418 B
Python
18 lines
418 B
Python
'''WizardKit: Config - Log'''
|
|
# vim: sts=2 sw=2 ts=2
|
|
|
|
|
|
DEBUG = {
|
|
'level': 'DEBUG',
|
|
'format': '[%(asctime)s %(levelname)s] [%(name)s.%(funcName)s] %(message)s',
|
|
'datefmt': '%Y-%m-%d %H:%M:%S %z',
|
|
}
|
|
DEFAULT = {
|
|
'level': 'INFO',
|
|
'format': '[%(asctime)s %(levelname)s] %(message)s',
|
|
'datefmt': '%Y-%m-%d %H:%M:%S %z',
|
|
}
|
|
|
|
|
|
if __name__ == '__main__':
|
|
print("This file is not meant to be called directly.")
|