def debug(msg, *args, **kwargs):
 if (len(root.handlers) == 0):
  basicConfig()
 root.debug(*((msg,) + args), **kwargs)

def debug ( msg , * args , ** kwargs ) : if ( len ( root . handlers ) == 0 ) : basicConfig ( ) root . debug ( * ( ( msg , ) + args ) , ** kwargs )
simplified interface to start debugging immediately .