Closed
Description
Currently Fluent Logger supports fmt
as dict
and exclusion attributes exclude_attrs
. Sometimes, however, it's necessary to have a dynamic format that is flexible enough to allow dynamic formatting.
This change introduces an ability to specify a callable in fmt
which would accept a record
as a parameter and return a data dictionary. Additionally that callable object should itself have a callable attribute usesTime
which returns a bool
in accordance with Formatter.usesTime()
.
Metadata
Metadata
Assignees
Labels
No labels