feat: log

This commit is contained in:
superobk
2024-04-30 17:59:37 +08:00
parent f8e51135cb
commit 981bdc8810
9 changed files with 81 additions and 31 deletions

13
src/log/handler.py Normal file
View File

@ -0,0 +1,13 @@
import logging
class LogHandler(logging.Handler):
def __init__(self)-> None:
logging.Handler.__init__(self=self)
def emit(self, record) -> None:
print("emit", record)
def handle(self, record) -> None:
print("@ handle",record)