def autolog(message):
 func = inspect.currentframe().f_back.f_code
 logging.debug(('%s: %s() in %s:%i' % (message, func.co_name, func.co_filename, func.co_firstlineno)))

def autolog ( message ) : func = inspect . currentframe ( ) . f_back . f_code logging . debug ( ( '%s: %s() in %s:%i' % ( message , func . co_name , func . co_filename , func . co_firstlineno ) ) )
automatically log the current function details .