From a8bb9711af4333ffb7d9d6f8caa706d20557c918 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 25 Jun 2023 13:51:47 +0100 Subject: [PATCH] added module level logger --- vban_cmd/event.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vban_cmd/event.py b/vban_cmd/event.py index ec5b22e..58c38f6 100644 --- a/vban_cmd/event.py +++ b/vban_cmd/event.py @@ -1,14 +1,15 @@ import logging from typing import Iterable, Union +logger = logging.getLogger(__name__) + class Event: """Keeps track of event subscriptions""" - logger = logging.getLogger("event.event") - def __init__(self, subs: dict): self.subs = subs + self.logger = logger.getChild(self.__class__.__name__) def info(self, msg=None): info = (f"{msg} events",) if msg else ()