JavaBeat
Log4j Home Articles Tutorials Java Interview Questions & FAQs Java QnA Code Junction

1. Introduction

2. Installation

3. log4j Basic Concepts

4. Logger

5. Appender

6. Layout

7. Using External Configuration Files

Installation

In order to use the tools we are about to install it is necessary to setup the operating environment so that the tools know where to find stuff they need and the operating system knows where to find the tools. A understanding of how to do this is essential as you will be asked to change the operating environment. I have comprehensively covered this in documents entitled Configuring A Windows Working Environment and Configuring A Unix Working Environment.

  1. Download the log4j distribution from http://jakarta.apache.org/log4j/docs/download.html.

  2. Extract the archived files to some suitable directory.

  3. Add the file dist/lib/log4j-1.2.6.jar to your CLASSPATH environment variable.

  4. Download http://apache.rmplc.co.uk/dist/xml/xerces-j/Xerces-J-bin.2.6.0.zip and unzip it to a temporary directory. Copy the files xercesImpl.jar and xmlParserAPIs.jar to some permanent location and append their paths to the CLASSPATH environment variable.


Sponsors
Webmaster Hosting Forum
Java Jobs
MyVideoLib
India News
Internet Advances
Latest QnA
SCJD Tips
When we start a thread by applying start() method on it ,how does it knows that to execute run()method?
About Wrapper class in Java
How to configure weblogic 7.0 in MyEclipse?
Static Block and Static Initializer in Java

JavaBeat Media (2004-2008), India
javabeat | planetoss | links directory | advertise
Copyright (2004 - 2008), JavaBeat