Skip to content

conditional log based on ms value (or any other custom logic) #885

Closed
@axyz

Description

@axyz

Hi, was wondering if it is possible to only show logs for events that take more than X ms, that would be helpful to identify bottlenecks in an application with many log points and eventually namespace such logger as app:perf for example.

I was thinking that could be done with a custom formatter, but quickly looking at the code it seems that the the new line is always inlcuded.

Maybe I'm missing something and there is a better way to achieve that, or is it a use case that was never considered?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThis issue asks a question or requests usage support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions