Clean the package layout

This commit is contained in:
Valentin Niess
2020-03-29 16:07:53 +02:00
parent f18d9d5537
commit f8a4c10644
15 changed files with 25 additions and 22 deletions

View File

@@ -0,0 +1,23 @@
import logging
__all__ = ['debug', 'log']
# Configure the logger
logging.basicConfig(
format='[%(asctime)s] %(message)s',
level=logging.INFO
)
def log(task, fmt, *args):
'''Log a standard message
'''
logging.info('%-8s ' + fmt, task, *args)
def debug(task, fmt, *args):
'''Report some debug information
'''
logging.debug('%-8s ' + fmt, task, *args)