Package org.ops4j.pax.logging
Class PaxMarker
- java.lang.Object
-
- org.ops4j.pax.logging.PaxMarker
-
public class PaxMarker extends Object
Wrapper for either SLF4Jorg.slf4j.Markeror Log4J2org.apache.logging.log4j.Marker. We can do it, because both are exported by pax-logging-api bundle. pax-logging-log4j2 and pax-logging-logback will know which method to call to get actual marker. Of course, with pax-logging it's possible to use Log4J2 API to log through Logback or use SLF4J to log through Log4J2 (and many other combinations). If there's an attempt to get Log4J2 marker when only SLF4J is available, proper marker has to be created.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.logging.log4j.Markerlog4j2Marker()org.slf4j.Markerslf4jMarker()
-