Skip to content

samrui/reelog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reelog python log best practices

>>> import reelog
>>> # root logger
>>> logger = reelog.get_logger()
>>> logger.info("hello world!")
>>> # reelog name logger
>>> logger = reelog.get_logger("reelog")
>>> logger.error("hello world!")
>>> # output to stdout and file
>>> logger = reelog.get_logger("reelog", outputs=[reelog.OUTPUT_STDOUT, reelog.OUTPUT_FILE])
>>> logger.warning("hello world!")
>>> # output to stdout and rotate file
>>> logger = reelog.get_logger("reelog", outputs=[reelog.OUTPUT_STDOUT, reelog.OUTPUT_ROTATE_FILE])
>>> logger.warning("hello world!")

About

simple graceful python log

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages