e1250 commited on
Commit
e17726f
·
1 Parent(s): 355ff2b
domain/__pycache__/detector.cpython-311.pyc ADDED
Binary file (1.12 kB). View file
 
domain/__pycache__/logger.cpython-311.pyc ADDED
Binary file (1.36 kB). View file
 
domain/__pycache__/logger.cpython-314.pyc ADDED
Binary file (1.66 kB). View file
 
domain/logger.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from abc import ABC, abstractmethod
2
+
3
+ class Logger(ABC):
4
+ @abstractmethod
5
+ def info(self, msg:str, **kwargs):
6
+ pass
7
+
8
+ def debug(self, msg:str, **kwargs):
9
+ pass
10
+
11
+ @abstractmethod
12
+ def error(self, msg:str, **kwargs):
13
+ pass
14
+
15
+ @abstractmethod
16
+ def warn(self, msg:str, **kwargs):
17
+ pass
18
+
19
+ @abstractmethod
20
+ def exception(self, msg:str, **kwargs):
21
+ pass