Unable to create detached markers via log4j-slf4j-impl 2.1.

2014-11-10 Thread David KOCH
Hello, I am unable to create detached versions of existing markers when using log4j2 through the slf4j facade - log4j2 version is 2.1. Example: import org.slf4j.Marker; import org.slf4j.MarkerFactory; public class TestMarker { public static void main(String[] args) { Marker markerA

Re: Unable to create detached markers via log4j-slf4j-impl 2.1.

2014-11-10 Thread Ralph Goers
Yes, that should be documented. Log4j 2 doesn’t currently support detached markers. If you can create a Jira issue for this and why a detached marker is required we can consider it. However, detached markers introduce some performance and thread safety issues so we would really need to unders

Re: Unable to create detached markers via log4j-slf4j-impl 2.1.

2014-11-12 Thread David KOCH
Hi Ralph, I worked around the issue. Basically, I had a setup where I had basic markers A, B and a marker C which existed in 2 versions: 1) C - with reference to A and 2) C with reference to B. What I did instead was create 2 separate markers. "C_A" with references to C and A and "C_B" with refere