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.

How to use log4j 2.0 and slf4j and Commons Logging together

I currently am starting a new Webapp (running on tomcat 6) I have components using slf4j and components using commons …

java logging slf4j apache-commons-logging log4j2
Apache Log4j2 package specific logging using log4j2.xml

I am using log4j2. But the problem that I am facing is that it logs all logs. I want …

java log4j2
Logging Spring using Log4j2

I'm trying to use Log4j2 to print the spring logs into a file and console. I guess it is …

java spring logging log4j log4j2
Log4j2 configuration not found when running standalone application built by shade plugin

I have application which when I run from maven log4j2 it is working: mvn exec:java -Dexec.args=... but …

java log4j2 maven-shade-plugin
Spring Profiles, different Log4j2 configs

In my application.yml I got: logging: config: classpath:log4j2.debug.yml And some others in different profiles. When …

spring spring-boot log4j2
Spring-Boot logging with log4j2?

I'm using spring-boot-starter, and would like to configure log4j2.xml to log asynchron + different content to different logfiles. I …

java spring log4j spring-boot log4j2
How to delete old logs with log4j2

( F.Y.I. I already searched out many documents in Internet. I'm using storm-0.10.0-beta1. Configuration file of log4j2 …

java logging log4j log4j2
Error when using LogManager (l4j2) with Java 8 (java.lang.reflect.AnnotatedElement cannot be resolved)

I just encountered a strange error when switching the JDK version of a new Project of mine from 7u45 to 8…

java java-7 java-8 log4j2
getting error trying to create log4j2 rollingfileappender

I'm trying to switch from using FileAppender to the RollingFileAppender using log4j2 (happens both with beta3 and beta4 jars). …

java configuration rollingfileappender log4j2
How to log FATAL (or any custom log level) with SLF4J and Log4j2

I have those specific requirements : Need to be able to log in FATAL level Need to use SLF4J Need …

java slf4j log4j2