mirror of
https://github.com/RedDeadDepresso/KKAFIO.git
synced 2025-12-22 09:20:02 +00:00
added files
This commit is contained in:
34
util/logger.py
Normal file
34
util/logger.py
Normal file
@@ -0,0 +1,34 @@
|
||||
class Logger(object):
|
||||
|
||||
@classmethod
|
||||
def log_msg(cls, type, msg):
|
||||
print(f"[MSG][{type}] {msg}")
|
||||
|
||||
@classmethod
|
||||
def log_success(cls, type, msg):
|
||||
print(f"[SUCCESS][{type}] {msg}")
|
||||
|
||||
@classmethod
|
||||
def log_skipped(cls, type, msg):
|
||||
print(f"[SKIPPED][{type}] {msg}")
|
||||
|
||||
@classmethod
|
||||
def log_replaced(cls, type, msg):
|
||||
print(f"[REPLACED][{type}] {msg}")
|
||||
|
||||
@classmethod
|
||||
def log_renamed(cls, type, msg):
|
||||
print(f"[RENAMED][{type}] {msg}")
|
||||
|
||||
@classmethod
|
||||
def log_removed(cls, type, msg):
|
||||
print(f"[REMOVED][{type}] {msg}")
|
||||
|
||||
@classmethod
|
||||
def log_error(cls, type, msg):
|
||||
print(f"[ERROR][{type}] {msg}")
|
||||
|
||||
@classmethod
|
||||
def log_info(cls, type, msg):
|
||||
print(f"[INFO][{type}] {msg}")
|
||||
|
||||
Reference in New Issue
Block a user