Top "Log4j" questions

log4j is a popular Java-based logging utility.

log4j logging twice

I am using log4j to log error and other system information. but come of the info logged twice at …

logging log4j
log4j.properties file - multiple loggers in same class

I would like to have two different log4j loggers in my application, and for there to be no "overlap" …

java logging log4j
How to exclude a single Class from a Log4j Logger / Appender?

I have a package "com.example". This package has five classes. I want to log four of these classes to …

java logging log4j appender
How to configure log4j to log different log levels to different files for the same logger

I have a normal INFO level log for application. What I need is to additionally log all ERROR level events …

java logging log4j
How to control log file with daily rolling and max file size by log4j?

I would like to create log file that can be rolled at the beginning of the next day or if …

log4j rollingfileappender
Time based triggering policy in log4j2

I am trying to create new log files on an hourly basis. I am using TimeBasedTriggerringPolicy of lo4j2 in …

java logging configuration log4j log4j2
file and stdout appenders in logback.xml

I have 2 logback.xml files in separate projects. One logs JDBC SQL to a file using a FileAppender and the …

java maven log4j logback
How can I log with Log4J SOAP request and response in AXIS 1.x?

I am having the next problem: I want to log the SOAP requests/responses that land on my web service (…

soap log4j axis
Log Level per appender for a single Logger

Is it possible to configure different log levels for a single Logger based on the appender? I realize this is …

java logging log4j
How to Create a Custom Appender in log4j2?

As disscussed in this link : How to create a own Appender in log4j? For creating a custom appender in …

java logging log4j log4j2