mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2025-01-18 18:40:47 +00:00
added module level logger
This commit is contained in:
parent
5bb0c2731e
commit
a8bb9711af
@ -1,14 +1,15 @@
|
|||||||
import logging
|
import logging
|
||||||
from typing import Iterable, Union
|
from typing import Iterable, Union
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class Event:
|
class Event:
|
||||||
"""Keeps track of event subscriptions"""
|
"""Keeps track of event subscriptions"""
|
||||||
|
|
||||||
logger = logging.getLogger("event.event")
|
|
||||||
|
|
||||||
def __init__(self, subs: dict):
|
def __init__(self, subs: dict):
|
||||||
self.subs = subs
|
self.subs = subs
|
||||||
|
self.logger = logger.getChild(self.__class__.__name__)
|
||||||
|
|
||||||
def info(self, msg=None):
|
def info(self, msg=None):
|
||||||
info = (f"{msg} events",) if msg else ()
|
info = (f"{msg} events",) if msg else ()
|
||||||
|
Loading…
Reference in New Issue
Block a user