libgs.utils.UTCLogFormatter

class libgs.utils.UTCLogFormatter(fmt=None, datefmt=None)[source]

A logging formatter that displays records in UTC (zulu) time

Initialize the formatter with specified format strings.

Initialize the formatter either with the specified format string, or a default as described above. Allow for specialized date formatting with the optional datefmt argument (if omitted, you get the ISO8601 format).

Methods

converter gmtime([seconds]) -> (tm_year, tm_mon, tm_mday, tm_hour, tm_min,
format(record) Format the specified record as text.
formatTime(record[, datefmt]) Return the creation time of the specified LogRecord as formatted text.

Attributes

use_colour

Inherited from base class

formatException(ei) Format and return the specified exception information as a string.
usesTime() Check if the format uses the creation time of the record.