create log

This commit is contained in:
George Lacey 2025-07-12 12:37:06 +01:00
parent 54944244ae
commit 57069c2b69

View File

@ -1,9 +1,13 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from dir import Root from dir import Root
from log import Log, LogCat
from pathlib import Path
class Layer(ABC): class Layer(ABC):
def __init__(self): def __init__(self, log_path: Path, log_category: str):
pass self.log_path = log_path
self.__log = Log(log_path)
self.log = LogCat(self.__log.queue, log_category)
@abstractmethod @abstractmethod
def __process(self, root: Root): def __process(self, root: Root):