create log
This commit is contained in:
parent
54944244ae
commit
57069c2b69
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user