log4j is a logging utility written in Java.It can be used as a debugging utility.log4j is one of widely used Java logging frameworks.log4j allows you to log to a file, console, remote server etc.
log4j has six logging levels from highest to lowest:
1. FATAL
2. ERROR
3. WARN
4. INFO
5. DEBUG
6. TRACE
You can configure log4j either using properties file or XML file.log4j configuration file contains
3 main components:
1. Loggers
2. Appenders
3. Layouts
The advantage of logging using log4j is that logging can be turned on or off without actually modifying the application that uses log4j.The application can be allowed to run with logging turned off until there's problem and later if there is any problem the user can turned on logging to see where is the problem.
Regards,
Tausif Khan, Nagpur
Wednesday, August 29, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment