Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Log4jUtils

        public Log4jUtils()
    • 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