import logging
from .logger import Logger, root_logger
last_log = logging.INFO
[docs]
def setLogLevel(level):
global last_log
from .logger import root_logger
root_logger.setLevel(level)
last_log = level
[docs]
def criticalLogging():
import logging
from .logger import root_logger
root_logger.setLevel(logging.CRITICAL)
[docs]
def disableLogging():
import logging
from .logger import root_logger
root_logger.setLevel(logging.ERROR)
[docs]
def warningLogging():
import logging
from .logger import root_logger
root_logger.setLevel(logging.WARNING)
[docs]
def enableLogging():
global last_log
import logging
if last_log is None:
last_log = logging.INFO
setLogLevel(last_log)
[docs]
def debugLogging():
import logging
from .logger import root_logger
root_logger.setLevel(logging.DEBUG)