1
0
mirror of https://github.com/Eyre-S/Coeur-Morny-Cono-python.git synced 2024-09-27 18:56:20 +08:00
Coeur-Morny-Cono-python/logger/logger.py
Eyre_S b9b06596b6
简单完成 messiva 功能实现,完成 ServerMain(start.py) 重写
- 附带添加 define 声明
  - 由于系统差异未能实现编译时间戳与可执行件 md5 校验值的功能
- 附带添加 MornyHello 重写
2022-09-26 16:08:18 +08:00

11 lines
410 B
Python

from logger.log import Log, LogLevels
from logger.log_appender import output
def trace (msg:str) : output(Log(msg, LogLevels.trace))
def debug (msg:str) : output(Log(msg, LogLevels.debug))
def info (msg:str) : output(Log(msg, LogLevels.info))
def warn(msg:str) : output(Log(msg, LogLevels.warn))
def error (msg:str) : output(Log(msg, LogLevels.error))
def fatal (msg:str) : output(Log(msg, LogLevels.fatal))