Hi all

I've noticed that we version 2.0.0 of SLF4j (at least) the logging
event supports several markers:
https://www.slf4j.org/api/org/slf4j/event/LoggingEvent.html

The Logback javadoc give a little bit more information in the javadoc:
https://www.javadoc.io/static/ch.qos.logback/logback-classic/1.4.5/ch.qos.logback.classic/ch/qos/logback/classic/spi/ILoggingEvent.html#getMarkerList()

But I haven't found a way how I can add several markers to a single
log event. The logger interface only allows one marker.
I know that I can add references but in my use-case we have 3
different markers which you can combine: one of them, two or all. Of
course, I can create a custom marker which references the other
required standard markers but this is more a workaround.

What are the plans here when the logging event already supports a list
of markers? I've searched the web (incl. the JIRA) but haven't found
any information/tickets with respect to multiple markers but there is
also not a lot ofinformation around markers in general.

Thanks a lot for your support on this
Oli
_______________________________________________
slf4j-user mailing list
slf4j-user@qos.ch
https://mailman.qos.ch/cgi-bin/mailman/listinfo/slf4j-user

Reply via email to