modified: netbox_dns_bridge/__init__.py

modified:   netbox_dns_bridge/catalog_zone_manager.py
modified:   netbox_dns_bridge/dns_server.py
new file:   netbox_dns_bridge/logger.py
modified:   netbox_dns_bridge/management/commands/dns-transfer-endpoint.py
modified:   netbox_dns_bridge/request_handler.py
Clean up logging
This commit is contained in:
sven authored and Sven Luthi committed 2026-04-10 15:08:10 +02:00
1 parent da6a5e09a5
commit 67ccf83b1c
6 files changed
+31 -22

No files matched your search

+3 -8
View File
@@ -1,17 +1,12 @@
import logging
from netbox.plugins import PluginConfig
from django.conf import settings
from .logger import get_logger
__version__ = "1.5.3"
logger = logging.getLogger(__name__)
logging.basicConfig(
level=logging.DEBUG, # Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s", # Log format
datefmt="%Y-%m-%d %H:%M:%S", # Date format for timestamps
)
logger = logger.get_logger(__name__)
class DNSBridgeConfig(PluginConfig):
name = "netbox_dns_bridge"