Skip to content

add eventTransformer to logger - #117

Open
HazemSayad wants to merge 1 commit into
SourceHorizon:mainfrom
HazemSayad:main
Open

add eventTransformer to logger#117
HazemSayad wants to merge 1 commit into
SourceHorizon:mainfrom
HazemSayad:main

Conversation

@HazemSayad

Copy link
Copy Markdown

fix #116 and should fix #11

Added ability to transform LogEvents using a simple callback

example:

typedef EventTransformerCallback<E extends LogEvent> = E Function(
    LogEvent event);
  Logger({
    LogFilter? filter,
    LogPrinter? printer,
    LogOutput? output,
    Level? level,
    EventTransformerCallback? eventTransformer,
  })

Open for feedback.

If this feature is not a good fit with the vision of the project please let me know if i can modify the code to make it fit, or if it is out right not a feature this project should have

Let me know if the supporting docs and tests i added are up to standard or you would like me to modify it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add event transformer to logger [Feature] Add 'TAG' options

1 participant