ragtag_utilities/utilities.py
def log(level, message):
    """ Log messages to standard error. """
    level = level.upper()
    if level not in {"VERSION", "CMD", "INFO", "WARNING", "DEBUG"}:
        raise ValueError("Invalid logging level: {}".format(level))

    sys.stderr.write(time.ctime() + " --- " + level + ": " + message + "\n")
    sys.stderr.flush()
 Log messages to standard error. 
Log messages to standard error.
Log messages to standard error .
def log(level, message):
    level = level.upper()
    if level not in {"VERSION", "CMD", "INFO", "WARNING", "DEBUG"}:
        raise ValueError("Invalid logging level: {}".format(level))
    sys.stderr.write(time.ctime() + " --- " + level + ": " + message + "\n")
    sys.stderr.flush()
def log ( level , message ) : level = level . upper ( ) if level not in { "VERSION" , "CMD" , "INFO" , "WARNING" , "DEBUG" } : raise ValueError ( "Invalid logging level: {}" . format ( level ) ) sys . stderr . write ( time . ctime ( ) + " --- " + level + ": " + message + "\n" ) sys . stderr . flush ( )
Log messages to standard error.
Log messages to standard error .
""" Log messages to standard error. """
level
message