Branch | Tests | Code Quality |
---|---|---|
master |
from pylogging.logger import Logger
from pylogging.log_level import LogLevel
logger = Logger()
logger.log(LogLevel.INFO, "Connection initialized")
logger.log(LogLevel.WARNING, "The rat bit your cables")
logger.log(LogLevel.ERROR, "The plague of rats in the server room")
Scope
from pylogging.logger import Logger
from pylogging.log_level import LogLevel
logger = Logger()
logger.set_options({"scope": True})
logger.log(LogLevel.ERROR, "Cannot connect to host")