Class Log4jUtils
- java.lang.Object
-
- com.newrelic.agent.bridge.logging.Log4jUtils
-
public class Log4jUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Log4jUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.String>getLinkingMetadata(java.lang.Object logEvent)Gets the agent linking metadata from a LogEvent from Log4j.
-
-
-
Method Detail
-
getLinkingMetadata
public static java.util.Map<java.lang.String,java.lang.String> getLinkingMetadata(java.lang.Object logEvent)
Gets the agent linking metadata from a LogEvent from Log4j. This method relies on reflection to search for a new field from our Log4j 2.11+ instrumentation.- Parameters:
logEvent- an instrumented LogEvent instance- Returns:
- an opaque map of strings to strings
-
-