-#!/usr/bin/python
+#!/usr/bin/env python3
"""
A reroutable logger that can handle deep tracebacks
# pylint: disable=c0111, c0103, w1201
-from __future__ import print_function
+
import os
import os.path
if context == 'server':
handlername = 'file'
filename = '/var/log/sfa.log'
- level = 'INFO'
+ level = 'DEBUG'
elif context == 'import':
handlername = 'file'
filename = '/var/log/sfa-import.log'
'level': level,
'formatter': 'standard',
'class': 'logging.StreamHandler',
- }
+ }
else:
config['handlers']['file'] = {
'filename': filename,
'when': 'w0',
'interval': 1,
'backupCount': 12,
- }
+ }
return config