lenskit.logging.processors#

LensKit logging processors and converters.

Functions

add_process_info(logger, method, event_dict)

Add process info if it does not exist.

format_timestamp(logger, method, event_dict)

Reformat UNIX timestamps.

log_warning(message, category, filename, lineno)

remove_internal(logger, method, event_dict)

Filter out “internal” attrs (beginning with _) for console logging.

lenskit.logging.processors.remove_internal(logger, method, event_dict)#

Filter out “internal” attrs (beginning with _) for console logging.

Parameters:
Return type:

MutableMapping[str, Any]

lenskit.logging.processors.format_timestamp(logger, method, event_dict)#

Reformat UNIX timestamps.

Parameters:
Return type:

MutableMapping[str, Any]

lenskit.logging.processors.add_process_info(logger, method, event_dict)#

Add process info if it does not exist.

Parameters:
Return type:

MutableMapping[str, Any]