(level, msg, *args, **kwargs)
Log 'msg % args' with the integer severity 'level' on the root logger. If
    the logger has no handlers, call basicConfig() to add a console handler
    with a pre-defined format.
Log 'msg % args' with the integer severity 'level' on the root logger. If
    the logger has no handlers, call basicConfig() to add a console handler
    with a pre-defined format.
Log msg % args with the integer severity level on the root logger . If the logger has no handlers call basicConfig () to add a console handler with a pre - defined format .
def log(level, msg, *args, **kwargs):
    """
    Log 'msg % args' with the integer severity 'level' on the root logger. If
    the logger has no handlers, call basicConfig() to add a console handler
    with a pre-defined format.
    """
    if len(root.handlers) == 0:
        basicConfig()
    root.log(level, msg, *args, **kwargs)
def log ( level , msg , * args , * * kwargs ) : if len ( root . handlers ) == 0 : basicConfig ( ) root . log ( level , msg , * args , * * kwargs )