SeaCogs/pterodactyl/logger.py

10 lines
365 B
Python
Raw Permalink Normal View History

from red_commons import logging
from red_commons.logging import getLogger
2024-04-08 05:55:35 -04:00
logger = getLogger('red.SeaCogs.Pterodactyl')
websocket_logger = getLogger('red.SeaCogs.Pterodactyl.websocket')
if logger.level >= logging.VERBOSE:
2024-03-07 21:14:12 -05:00
websocket_logger.setLevel(logging.logging.INFO)
elif logger.level < logging.VERBOSE:
2024-03-07 21:14:12 -05:00
websocket_logger.setLevel(logging.logging.DEBUG)