log_helper_test_imported.py
600 Bytes
"""
Dummy file that logs messages, meant to be imported
by the main test file
"""
from oletools.util.log_helper import log_helper
import logging
DEBUG_MESSAGE = 'imported: debug log'
INFO_MESSAGE = 'imported: info log'
WARNING_MESSAGE = 'imported: warning log'
ERROR_MESSAGE = 'imported: error log'
CRITICAL_MESSAGE = 'imported: critical log'
logger = log_helper.get_or_create_logger('test_imported', logging.ERROR)
def log():
logger.debug(DEBUG_MESSAGE)
logger.info(INFO_MESSAGE)
logger.warning(WARNING_MESSAGE)
logger.error(ERROR_MESSAGE)
logger.critical(CRITICAL_MESSAGE)