Simple python logger
Project description
ZOOM LOG
Simple python logger
Quick start:
from zoomlog import Logger, DEBUG, INFO
logger = Logger("test.log", name="test", level=DEBUG)
logger.debug("My logger is work!")
name = "Sergey"
logger.addLevel("NEW USER", INFO)
logger.log("NEW USER", "Created new user - %s" % name)
00:00:00 01.01.22 DEBUG:test >> My logger is work!
00:00:01 01.01.22 NEW USER:test >> Created new user - Sergey
test.log
00:00:00 01.01.22
00:00:00 01.01.22 DEBUG:test >> My logger is work!
00:00:01 01.01.22 NEW USER:test >> Created new user - Sergey
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zoomlog-1.0.2.tar.gz
(3.0 kB
view hashes)