(msg, *args, **kwargs)
Log a message with severity 'ERROR' on the root logger. If the logger has
    no handlers, call basicConfig() to add a console handler with a pre-defined
    format.
Log a message with severity 'ERROR' on the root logger. If the logger has
    no handlers, call basicConfig() to add a console handler with a pre-defined
    format.
Log a message with severity ERROR on the root logger . If the logger has no handlers call basicConfig () to add a console handler with a pre - defined format .
def error(msg, *args, **kwargs):
    """
    Log a message with severity 'ERROR' 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.error(msg, *args, **kwargs)
def error ( msg , * args , * * kwargs ) : if len ( root . handlers ) == 0 : basicConfig ( ) root . error ( msg , * args , * * kwargs )