Top "Log4j2" questions

Log4j 2 is an upgrade to Log4j, a Java-based logging utility, that provides significant improvements over its predecessor, Log4j 1.x, and provides many of the improvements available in Logback while fixing some inherent problems in Logback's architecture.

ClasscastException - org.apache.log4j.Logger cannot be cast to org.owasp.esapi.Logger - log4j to log4j2

I am working on upgrading log4j to log4j2. In that process I am getting a Logger Class cast …

logging jboss7.x log4j2 esapi
custom appender plugin not detected by log4j2

I am trying to create a custom appender for log4j 2.0, but am having issues getting my log4j configuration …

java log4j2 appender
Log4J2 - How to disable logging in unit test?

I am using Log4J v2.0 Beta3 in my application for logging and I am getting log messages generated when …

java unit-testing logging log4j2
Masking sensitive data before getting logged - log4j

For logging purposes, instead of using toString() method, Jackson's writeValueAsString(object) method has been used in the project I have …

java log4j log4j2 data-masking
log4j2 config file is not being recognized

I'm trying to get log4j2 setup in my Geb framework. For the life of me I can't figure out …

logging groovy log4j log4j2 geb
Log4j 2 JSON pattern layout + Logging JSON payload

I am using ELK stack along with log4j 2 via sl4j with json pattern layout to log messages. All …

java json logging log4j2 elastic-stack
Why my log will be redirected into catalina.out?

In my application, I use log4j2 to output log. <!-- log4j2 --> <dependency> <…

java tomcat7 log4j2 catalina.out
Difference between AsyncLogger and AsyncAppender in Log4j2

I have understanding that AsyncAppender do the appending job in a separate thread. They use ArrayBlockingQueue for this purpose. AND …

java multithreading logging log4j log4j2
Can we use all features of log4j2 if we use it along with slf4j api?

We have migrated all our code to use the slf4 API to use generic APIs, however now we are thinking …

java logging log4j slf4j log4j2
failing to load log4j2 while running fatjar

i am working on a project where i utilize log4j2 logging. while developing in intellij, all works fine and …

java logging log4j2 flume flume-ng