log4j Tutorial

change

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.11</version>
</dependency>
</dependencies>

to

<version>1.6.6</version>

How to add Log4j logger support to your project?

Next we need to configure the Log4j library to our requirements. Log4j reads its configurations from log4j.properties file (or log4j.xml) placed in the CLASSPATH. Every log4j.properties file defines the following three things, mainly:

Building and Installing Log4j 2.x

log4j.properties example

Quick Links for Java Programmers

(1) log4j Quick Reference Guide

A quick log4j reference guide for log4j Programmers.

log4j Quick Reference Guide

(2) log4j Resources

A collection of log4j Sites, Books and Articles is given at this page.

log4j Useful Resources

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s