8000 Allow fully customizable formatter · Issue #111 · fluent/fluent-logger-python · GitHub
[go: up one dir, main page]

Skip to content
Allow fully customizable formatter #111
Closed
@arcivanov

Description

@arcivanov

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0