netbox-agent/netbox_agent/logging.py
2020-04-12 20:43:25 +02:00

9 lines
200 B
Python

import logging
from netbox_agent.config import config
logger = logging.getLogger()
if config.log_level.lower() == 'debug':
logger.setLevel(logging.DEBUG)
else:
logger.setLevel(logging.INFO)