netbox-agent/netbox_agent/logging.py
2019-08-07 10:32:23 +02:00

11 lines
190 B
Python

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