Ejemplo n.º 1
0
def devlog(msg):
    """
    If DEBUG is set it will print information directly to stdout
    """
    if CONF.getDebugStatus():
        print "[DEBUG] - %s" % msg
        getLogger().log(msg,"DEBUG")
Ejemplo n.º 2
0
def devlog(msg):
    """
    If DEBUG is set it will print information directly to stdout
    """
    if CONF.getDebugStatus():
        print "[DEBUG] - %s" % msg
        getLogger().log(msg, "DEBUG")
Ejemplo n.º 3
0
def log(msg ,level = "INFO"):
    """
    This api will log the text in the GUI console without the level
    it will also log to a file with the corresponding level
    if logger was configured that way
    """
    getLogger().log(msg,level)
Ejemplo n.º 4
0
def log(msg, level="INFO"):
    """
    This api will log the text in the GUI console without the level
    it will also log to a file with the corresponding level
    if logger was configured that way
    """
    getLogger().log(msg, level)