Logging Techniques In Java

1.1 Loggers vs System.out.println

Loggers has mulitple levels for logging. If we are writing a real short program, just for learning purposes System.out.println is fine but when we are developing a quality software project, we should use professional logger and SOPs should be avoided.
Learn More...

1.2 Difference between various Logging Techniques

There are many java Api that are used for logging in java, some of the popular loggers that are used by professional developers are given here.
Learn More...

1.3 Introduction To Log4j

Log4j is a popular logging package written in Java. Log4j is highly configurable through external configuration files at runtime.
Learn More...

1.4 Features Of Log4j

log4j is thread-safe, optimized for speed. Log4j supports internationalization and it is designed to handle Java Exceptions.
Learn More...

1.5 Log4j Configuration in Eclipse

There are various steps to configure Log4j in Eclipse. For configuring Log4j into Eclipse following given steps have to be followed-
Learn More...

1.6 Introduction To Logback

Logback is a higher version of Log4j project. It was developed by Ceki Gülcü, log4j's founder. Logback is faster and has a smaller footprint than all existing logging Api, sometimes by a wide margin. Just as importantly, logback offers unique and rather useful features missing in other logging systems.
Learn More...

1.7 Features Of Logback

Faster implementation, extensive battery of tests, logback-classic speaks SLF4J natively, automatic reloading of configuration files are some features of Logback.
Learn More...

1.8 Logback Configuration in Eclipse

Following steps have to follow for configuring Logback in Eclipse.
Learn More...

1.9 Reasons To Prefer Logback Over Log4j

As Logback is higher version it brings numerous improvement over log4j. Logback is conceptually very similar to log4j as both projects were founded by the same developer. If you are familiar with log4j, it will be easy to use logback.
Learn More...

1.10 Difference Between Logback And Log4j

Both Logback and Log4j are logging framework, logback is conceptually very similar to log4j as both projects were founded by the same developer. If you are already familiar with log4j, you will feel quite familiar to logback.
Learn More...

1.11 Introduction To SLF4J

SLF4J (Simple Logging Facade) for java is an abstraction of different logging frameworks (eg. log4j, java.util.logging, commons logging, logback etc.). SLF4J provide plug-in to the end-user the desired logging framework at deployment time i.e we can choose the particular logging framework at application runtime.
Learn More...

1.12 SLF4J with Log4j

To use Log4j with SLF4J we need to follow some steps. Use of SLF4J with Log4j is given here -
Learn More...

1.13 SLF4J with Logback

There are number of steps to use SLF4J with Logback. You have to follow the following steps to use both of them-
Learn More...

1.14 Introduction To Per4j

Perf4J is used for calculating and displaying performance statistics for Java application. Perf4j is a set of utilities useful for developers those who are familiar with logging frameworks such as log4j, logback, JCL and JUL.
Learn More...

1.15 Features of Perf4j

A simple stop watch mechanism for succinct timing statements. Per4j is easy to integrate with common popular logging framework such as log4j, logback, JCl and Slf4j(facade) as well.
Learn More...

1.16 Perf4j with SLF4J and Log4j

To use Perf4j with SLF4J and Log4j we need to follow some steps. First download Per4j, Slf4j and Loj4j jar files and then add Perf4j, Slf4j and Log4j jars into classpath after that create java class.

Learn More...

1.17 Perf4j with SLF4J and Log4j Example

Here are some examples for Perf4j, SLF4J and Log4j.