Initial commit

This commit is contained in:
Valentin Niess
2020-03-29 11:59:23 +02:00
commit dc3acadb9a
24 changed files with 1735 additions and 0 deletions

23
python_appimage/log.py Normal file
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)