Skip to content

AshWorkshop/Mogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mogger

安装

pip install git+https://github.com/AshWorkshop/Mogger.git

使用

假设MongoDB已启用

import mogger
logger = mogger.Logger(url="mongodb://root:example@localhost:27017/", database="logging", collection="log", level=mogger.INFO)

logger.info("Hello, world!")
logger.warning({
    'description': '测试'
})

logger.get(level=mogger.INFO, latest=2)
logger.get(level=mogger.INFO, exact=True, latest=1)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages