alogging.filters.pprint module

class alogging.filters.pprint.PprintArgsFilter(name='', defaults=None)[source]

Bases: logging.Filter

Use pprint/pformat to pretty the log message args

ie, log.debug(“foo: %s”, foo) this will pformat the value of the foo object.

filter(record)[source]

Determine if the specified record is to be logged.

Is the specified record to be logged? Returns 0 for no, nonzero for yes. If deemed appropriate, the record may be modified in-place.