Skip to main content

mellea.helpers.fancy_logger

Hendrik’s Fancy Logger.

Classes

RESTHandler

RESTHandler for logging. Methods:

emit

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

JsonFormatter

Logging formatter for JSON. Methods:

format

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

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:

format

format(self, record)
The format fn.

FancyLogger

A fancy logger. Methods:

get_logger

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