Reader small image

You're reading from  Apache Tomcat 7 Essentials

Product typeBook
Published inMar 2012
Reading LevelBeginner
PublisherPackt
ISBN-139781849516624
Edition1st Edition
Languages
Right arrow
Author (1)
Tanuj Khare
Tanuj Khare
author image
Tanuj Khare

Tanuj Khare has worked as a professional in IT for six+ years. He is involved in Process improvements using ITIL framework and techniques (LEAN and Six sigma). He is MCSA and ITIL certified and has expertise in handling critical production server issues and has a track record of dealing with many complex problems. His quick resolution to issues faced in a production environment helped his team and clients a lot. Tanuj has SME (subject matter expertise) in Tomcat, weblogic, and JBOSS Server Administration. His experience includes working with large enterprise web hosting environment for J2EE container and small teams and his quick turnaround time resulted in on-time delivery. Apart from this, his technical expertise in root cause analysis, problem management, migration of enterprise application, and upgrade of web application servers is commendable. Until now he has done around 100+ enterprise application migrations. He has also done J2EE web and application upgrades and managed environments with 1,000+ middleware instances. Outside of work life, Tanuj enjoys playing table tennis and exploring new technologies. Tanuj is a good dancer. This is his first book.
Read more about Tanuj Khare

Right arrow

Log4j


Log4j is the project run by The Apache Software Foundation. This project helps in enabling the logs at the various levels of the server and application.

The major advantage of log4j is manageability. It provides the developer a freedom to change the log level at the configuration file level. Also, you can enable/disable logs at the configuration level, so there is no need to change the code. We can customize the log pattern based on the application, separately. Log4j has six log levels. The following figure shows the different types of log levels in log4j:

Log level for log4j

Every log level in log4j has its own functionality. The following table shows the functionality of each log level in log4j:

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Apache Tomcat 7 Essentials
Published in: Mar 2012Publisher: PacktISBN-13: 9781849516624

Author (1)

author image
Tanuj Khare

Tanuj Khare has worked as a professional in IT for six+ years. He is involved in Process improvements using ITIL framework and techniques (LEAN and Six sigma). He is MCSA and ITIL certified and has expertise in handling critical production server issues and has a track record of dealing with many complex problems. His quick resolution to issues faced in a production environment helped his team and clients a lot. Tanuj has SME (subject matter expertise) in Tomcat, weblogic, and JBOSS Server Administration. His experience includes working with large enterprise web hosting environment for J2EE container and small teams and his quick turnaround time resulted in on-time delivery. Apart from this, his technical expertise in root cause analysis, problem management, migration of enterprise application, and upgrade of web application servers is commendable. Until now he has done around 100+ enterprise application migrations. He has also done J2EE web and application upgrades and managed environments with 1,000+ middleware instances. Outside of work life, Tanuj enjoys playing table tennis and exploring new technologies. Tanuj is a good dancer. This is his first book.
Read more about Tanuj Khare

Log level

Description

OFF

This level is set when you want logging to be set as false (Stopped logging).

FATAL

This log level will print the severe errors that cause premature termination.

ERROR

This log level is used to capture runtime errors or unexpected conditions.

Expect these...