Top "Log4j" questions

log4j is a popular Java-based logging utility.

How to set maximum number of rolls and maximum log size for tomcat?

I have problem with space so need limit size of catalina.out to 10M and limit number of rolls to 3 …

java tomcat log4j java.util.logging
How to log using log4j to local file system inside a Spark application that runs on YARN?

I'm building an Apache Spark Streaming application and cannot make it log to a file on the local filesystem when …

logging log4j apache-spark yarn
log4j - set different loglevel for different packages/classes

I use log4j for logging and i want to print all logger.debug statements in a particular class / selected …

java log4j
What are markers in Java Logging frameworks and what is a reason to use them?

First time I hear about markers when read: http://slf4j.org/faq.html I check available methods for Logger …

java logging log4j slf4j logback
How to send java.util.logging to log4j?

I have an existing application which does all of its logging against log4j. We use a number of other …

java logging log4j apache-commons slf4j
log4j2 xml configuration - Log to file and console (with different levels)

I want to do two things: Log to console with a certain log-level Log to file with another log-level Console …

xml log4j log4j2
Log4J: Strategies for creating Logger instances

I decided to use Log4J logging framework for a new Java project. I am wondering what strategy should I …

java logging log4j
Making a log4j console appender use different colors for different threads

I am tracking down some concurrency issues and it would be very helpful to have the output lines from each …

java console log4j
Where is logback encoder pattern documentation

I've gone through all the documentation of logback and I can't find anywhere the documentation to configure the encoder's pattern …

java logging log4j logback
Logging in Java and in general: Best Practices?

Sometimes when I see my logging code I wonder if I am doing it right. There might be no definitive …

java logging log4j