(msg, severity=Severity.INFO)
Adds a message with the given severity to the log. This message will be written
            to the log output stream, which by default is sys.stdout. A newline character
            will be added to the message by default.
Adds a message with the given severity to the log. This message will be written
            to the log output stream, which by default is sys.stdout. A newline character
            will be added to the message by default.
Adds a message with the given severity to the log . This message will be written to the log output stream which by default is sys . stdout . A newline character will be added to the message by default .
def add(msg, severity=Severity.INFO):
        """ Adds a message with the given severity to the log. This message will be written
            to the log output stream, which by default is sys.stdout. A newline character
            will be added to the message by default.
        """
        if severity >= Log.min_severity:
            ts = time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime())
            Log.output_stream.write(ts + ' [' + str(severity) + ']\t' + msg + '\n')
            Log.output_stream.flush()
def add ( msg , severity = Severity . INFO ) : if severity >= Log . min_severity : ts = time . strftime ( "%Y-%m-%d %H:%M:%S" , time . gmtime ( ) ) Log . output_stream . write ( ts + ' [' + str ( severity ) + ']\t' + msg + '\n' ) Log . output_stream . flush ( )