themachine/log/__init__.py
def __log(level, message, *args):
    """
    Logs a message into the logs.<level> topic

    :param level:   Log level. Should be one of the constants defined in this module
    :param message: Log message
    :param args:    Message formatting items
    """
    frame, filename, line_number, function_name, lines, index = inspect.getouterframes(inspect.currentframe())[2]
    module = inspect.getmodule(frame)

    publish('logs.%s' % level, {
        'filename': filename,
        'funcName': function_name,
        'levelname': logging.getLevelName(level),
        'levelno': level,
        'lineno': line_number,
        'module': module.__name__,
        'pid': os.getpid(),

        'message': message % args
    })

    Logs a message into the logs.<level> topic

    :param level:   Log level. Should be one of the constants defined in this module
    :param message: Log message
    :param args:    Message formatting items
    
Logs a message into the logs. topic
Logs a message into the logs . topic
def __log(level, message, *args):
    frame, filename, line_number, function_name, lines, index = inspect.getouterframes(inspect.currentframe())[2]
    module = inspect.getmodule(frame)
    publish('logs.%s' % level, {
        'filename': filename,
        'funcName': function_name,
        'levelname': logging.getLevelName(level),
        'levelno': level,
        'lineno': line_number,
        'module': module.__name__,
        'pid': os.getpid(),
        'message': message % args
    })
def __log ( level , message , * args ) : frame , filename , line_number , function_name , lines , index = inspect . getouterframes ( inspect . currentframe ( ) ) [ 2 ] module = inspect . getmodule ( frame ) publish ( 'logs.%s' % level , { 'filename' : filename , 'funcName' : function_name , 'levelname' : logging . getLevelName ( level ) , 'levelno' : level , 'lineno' : line_number , 'module' : module . __name__ , 'pid' : os . getpid ( ) , 'message' : message % args } )
Logs a message into the logs.<level> topic
Logs a message into the logs . <level > topic
"""
    Logs a message into the logs.<level> topic

    :param level:   Log level. Should be one of the constants defined in this module
    :param message: Log message
    :param args:    Message formatting items
    """
level
Log level. Should be one of the constants defined in this module
Log level . Should be one of the constants defined in this module
message
None
args
Message formatting items
Message formatting items