import logging

logger = logging.getLogger("camera_module")
logger.setLevel(logging.DEBUG)

log_file = logging.FileHandler("camera.log")

formatter = logging.Formatter("%(acstime)s - %(name)s - %(levelname)s - %(message)s")
log_file.setFormatter(formatter)
logger.addHandler(log_file)

logger.info('Log Message')
logger.info('DEBUG LOG MESSAGE')
