eclipse-vertx / vert.x

Vert.x is a tool-kit for building reactive applications on the JVM
http://vertx.io
Other
14.32k stars 2.08k forks source link

Support Marker for Logger spi. #5251

Closed curtiseng closed 4 months ago

curtiseng commented 4 months ago

Read me

Read this first before creating an issue:

Describe the feature

Logger.info(MarkerFactory.getMarker("BUSINESS"), "message: {}", params);

Use cases

We use marker filter to split log to different file for trace and metrics.

Contribution

I have no idea now, maybe i can use slf4j logger?

vietj commented 4 months ago

The logger SPI should only be used by vertx components and not applications which instead should use the logger of their choice.