Package nl.nn.adapterframework.util
Class LogUtil
- java.lang.Object
-
- nl.nn.adapterframework.util.LogUtil
-
public class LogUtil extends Object
Log4j can now be started from any LogManager.getLogger() call
-
-
Field Summary
Fields Modifier and Type Field Description static String
MDC_ADAPTER_KEY
static String
MDC_CORRELATION_ID_KEY
static String
MDC_EXIT_CODE_KEY
static String
MDC_EXIT_STATE_KEY
static String
MDC_MESSAGE_ID_KEY
static String
MESSAGE_LOGGER
-
Constructor Summary
Constructors Constructor Description LogUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.logging.log4j.Logger
getLogger(Class<?> clazz)
static org.apache.logging.log4j.Logger
getLogger(Object owner)
static org.apache.logging.log4j.Logger
getLogger(String name)
static org.apache.logging.log4j.Logger
getMsgLogger(IAdapter adapter)
Must be called during configure after setName has been set!static org.apache.logging.log4j.Logger
getMsgLogger(IAdapter adapter, INamedObject object)
Must be called during configure after setName has been set!static org.apache.logging.log4j.Logger
getRootLogger()
static org.apache.logging.log4j.CloseableThreadContext.Instance
getThreadContext(IAdapter adapter, String messageId, PipeLineSession session)
static void
setIdsToThreadContext(org.apache.logging.log4j.CloseableThreadContext.Instance ctc, String messageId, String correlationId)
-
-
-
Field Detail
-
MESSAGE_LOGGER
public static final String MESSAGE_LOGGER
- See Also:
- Constant Field Values
-
MDC_ADAPTER_KEY
public static final String MDC_ADAPTER_KEY
- See Also:
- Constant Field Values
-
MDC_EXIT_STATE_KEY
public static final String MDC_EXIT_STATE_KEY
- See Also:
- Constant Field Values
-
MDC_EXIT_CODE_KEY
public static final String MDC_EXIT_CODE_KEY
- See Also:
- Constant Field Values
-
MDC_MESSAGE_ID_KEY
public static final String MDC_MESSAGE_ID_KEY
- See Also:
- Constant Field Values
-
MDC_CORRELATION_ID_KEY
public static final String MDC_CORRELATION_ID_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRootLogger
public static org.apache.logging.log4j.Logger getRootLogger()
-
getLogger
public static org.apache.logging.log4j.Logger getLogger(String name)
-
getLogger
public static org.apache.logging.log4j.Logger getLogger(Class<?> clazz)
-
getLogger
public static org.apache.logging.log4j.Logger getLogger(Object owner)
-
getMsgLogger
public static org.apache.logging.log4j.Logger getMsgLogger(IAdapter adapter)
Must be called during configure after setName has been set!
-
getMsgLogger
public static org.apache.logging.log4j.Logger getMsgLogger(IAdapter adapter, INamedObject object)
Must be called during configure after setName has been set!
-
getThreadContext
public static org.apache.logging.log4j.CloseableThreadContext.Instance getThreadContext(IAdapter adapter, String messageId, PipeLineSession session)
-
-