Skip to main content

Classes

CLASS RESTHandler

RESTHandler for logging.
Methods:

FUNC emit

emit(self, record)
Attempts to emit a record to FLOG, or silently fails.

CLASS JsonFormatter

Logging formatter for JSON.
Methods:

FUNC format

format(self, record)
Formats record as a JSON serializable object.

CLASS CustomFormatter

A nice custom formatter copied from [https://stackoverflow.com/questions/384076/how-can-i-color-python-logging-output](Sergey Pleshakovโ€™s post on StackOvervlow).
Methods:

FUNC format

format(self, record)
The format fn.

CLASS FancyLogger

A fancy logger.
Methods:

FUNC get_logger

get_logger()
Returns a FancyLogger.logger and sets level based upon env vars.