Top "Log4j" questions

log4j is a popular Java-based logging utility.

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". in a Maven Project

I have a dependency for SLF4J. I am getting this error: SLF4J: Failed to load class "org.slf4…

java maven log4j slf4j
How to configure log4j to only keep log files for the last seven days?

I have the following logging problem with several Java applications using log4j for logging: I want log files to …

java logging log4j
Log4j, configuring a Web App to use a relative path

I have a java webapp that has to be deployed on either Win or Linux machines. I now want to …

java web-applications log4j
Configuring RollingFileAppender in log4j

I'm working on a set of web services and we'd like to have a daily rotated log. I'm trying to …

java logging log4j
How to send a stacktrace to log4j?

Say you catch an exception and get the following on the standard output (like, say, the console) if you do …

java logging log4j stack-trace
If using maven, usually you put log4j.properties under java or resources?

Where should I put the log4j.properties file when using the conventional Maven directories?

java maven configuration log4j
Disabling Log4J Output in Java

How can one quickly turn off all Log4J output using a log4j.properties file?

java logging log4j
log4j: Log output of a specific class to a specific appender

I use log4j and would like to route the output of certain Loggers to specific files. I already have …

java log4j logging appender
How to log Apache CXF Soap Request and Soap Response using Log4j?

I am using the Apache CXF Framework. Inside my client program, I need to log CXF SOAP Requests and SOAP …

log4j cxf
Setting log level of message at runtime in slf4j

When using log4j, the Logger.log(Priority p, Object message) method is available and can be used to log …

java logging log4j slf4j