Design Pattern Examples
Overview of object-oriented design patterns
bridge_loggerinterface.py
Go to the documentation of this file.
5
6from abc import ABC, abstractmethod
7
8
9
11class ILogger(ABC):
12
13
16 @abstractmethod
17 def Close(self) -> None:
18 pass
19
20
24 @abstractmethod
25 def LogTrace(self, msg : str) -> None:
26 pass
27
28
32 @abstractmethod
33 def LogInfo(self, msg : str) -> None:
34 pass
35
36
40 @abstractmethod
41 def LogError(self, msg : str) -> None:
42 pass
@ Close
Window is asked to close itself, generally sent by the window itself in response to a button up in a ...
Represents an implementation of a logger object as called from the Logger class.
None LogError(self, str msg)
Log error messages to the configured output.
None LogTrace(self, str msg)
Log trace messages to the configured output.
None LogInfo(self, str msg)
Log informational messages to the configured output.