diff --git a/src/layers/layer.py b/src/layers/layer.py index 242fb9e..6ee484d 100644 --- a/src/layers/layer.py +++ b/src/layers/layer.py @@ -1,9 +1,13 @@ from abc import ABC, abstractmethod from dir import Root +from log import Log, LogCat +from pathlib import Path class Layer(ABC): - def __init__(self): - pass + def __init__(self, log_path: Path, log_category: str): + self.log_path = log_path + self.__log = Log(log_path) + self.log = LogCat(self.__log.queue, log_category) @abstractmethod def __process(self, root: Root):