2024-02-29 23:26:24 -05:00
|
|
|
import logging
|
|
|
|
|
2024-03-07 01:32:27 -05:00
|
|
|
logger = logging.getLogger('red.seacogs.pterodactyl')
|
2024-03-07 02:52:44 -05:00
|
|
|
class WebsocketLogger(logging.Logger):
|
|
|
|
def __init__(self, name, level=logging.NOTSET):
|
|
|
|
super().__init__(name, level)
|
|
|
|
|
|
|
|
def debug(self, msg, *args, **kwargs):
|
|
|
|
self.log(logging.VERBOSE, msg, *args, **kwargs)
|
|
|
|
|
|
|
|
logging.setLoggerClass(WebsocketLogger)
|
2024-03-07 01:32:27 -05:00
|
|
|
websocket_logger = logging.getLogger('red.seacogs.pterodactyl.websocket')
|
2024-03-07 02:52:44 -05:00
|
|
|
logging.VERBOSE = 5
|
|
|
|
logging.addLevelName(logging.VERBOSE, "VERBOSE")
|