PracticeDev/study_python/tcp_relay-master/database-handler-master-89c8c1c49d184f8fc6d372ef78de6a101774bcfc
2022-12-20 17:31:11 +08:00
..
logger clean and init practice repo 2022-12-20 17:31:11 +08:00
.gitignore clean and init practice repo 2022-12-20 17:31:11 +08:00
README.md clean and init practice repo 2022-12-20 17:31:11 +08:00
requirements.txt clean and init practice repo 2022-12-20 17:31:11 +08:00

Mimic route database

Usage

git clone http://192.168.10.20/Traphix/database-handler.git
cp -r ./database-logger/logger /path/to/your/project

Example

from logger import MRDatabaseHandler

db_handler = MRDatabaseHandler("your_module_name")
db_handler.setLevel(logging.INFO)
your_logger.addHandler(db_handler)