Class Log4JNDC

java.lang.Object
org.alfresco.util.log.log4j.Log4JNDC
All Implemented Interfaces:
NDCDelegate

public class Log4JNDC extends Object implements NDCDelegate
A stand in for the org.apache.logging.log4j.ThreadContext class that avoids introducing runtime dependencies against the otherwise optional log4j.
Author:
dward
  • Constructor Details

    • Log4JNDC

      public Log4JNDC()
  • Method Details

    • push

      public void push(String message)
      Push new diagnostic context information for the current thread.
      Specified by:
      push in interface NDCDelegate
      Parameters:
      message - The new diagnostic context information.
    • remove

      public void remove()
      Remove the diagnostic context for this thread.
      Specified by:
      remove in interface NDCDelegate