orangeqs.juice.service._logging#

Handlers and Utilities for Service Logging.

Module Contents#

Classes#

JuiceInfluxLoggingHandler

JuiceInfluxLoggingHandler instances dispatch logging events to influx.

API#

class orangeqs.juice.service._logging.JuiceInfluxLoggingHandler(*, bucket: str, service: str)#

Bases: logging.Handler

JuiceInfluxLoggingHandler instances dispatch logging events to influx.

There is no need to set a Formatter. The raw input will be passed on to the influx write api.

DEFAULT_LOG_RECORD_KEYS#

None

close() None#

Close the write_api, client and logger.

emit(record: logging.LogRecord) None#

Emit a record via the influxDB WriteApi.