diff options
| author | spv <spv@spv.sh> | 2026-04-21 13:05:20 -0400 |
|---|---|---|
| committer | spv <spv@spv.sh> | 2026-04-21 13:05:20 -0400 |
| commit | f8aa8ee83ebbabded35bdb11c8feead5cf81a246 (patch) | |
| tree | df524b71c69ba61a6a4ad31ea7ccc5768dc97471 /src/logger.py | |
Diffstat (limited to 'src/logger.py')
| -rw-r--r-- | src/logger.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/logger.py b/src/logger.py new file mode 100644 index 0000000..394ad57 --- /dev/null +++ b/src/logger.py @@ -0,0 +1,17 @@ +class logger: + log_level = None + LOG_ERROR = 0 + LOG_INFO = 1 + LOG_DEBUG = 2 + LOG_INSANEDEBUG = 999 + + def __init__(self): + pass + + def set_log_level(self, _log_level): + self.log_level = _log_level + + def log(self, logl, *args): + for arg in args: + if self.log_level >= logl: + print(arg) |
