Pro Apache Log4j, Second Edition
Samudra Gupta, Steve AnglinBooks.org participates in affiliate programs including Bookshop.org and the Amazon Services LLC Associates Program. We may earn a commission from qualifying purchases made through links on this page, at no additional cost to you.
Overview
In development scenarios where things can't be run in a debugger, or when you run the risk of masking the problem, logs are the greatest source of information about running a program. Pro Apache Log4j, Second Edition provides best practices guidelines and comprehensive coverage of the most recent release.
Step by step, the book explains core concepts, from basic to advanced. Code samples are in Java and include guidelines for different application-specific needs. You’ll also learn how to extend the API to write custom components and best practices for using the feature-rich log4j API. This book concludes with enterprise Java applications using log4j with JSP and J2EE.
Table of Contents
- Introduction to Application Logging
- Understanding Apache log4j
- Destination of Logging—The Appender Objects
- Formatting Logging Information in log4j
- Filtering, Error Handling, and Special Rendering of Log Messages
- Extending log4j to Create Custom Logging Components
- Complete log4j Example
- Log4j and J2EE
- Using the Apache Log Tag Library
- Best Practices and Looking Forward to 1.3
Synopsis
In development scenarios where things can't be run in a debugger, or when you run the risk of masking the problem, logs are the greatest source of information about running a program. Pro Apache Log4j, Second Edition provides best practices guidelines and comprehensive coverage of the most recent release.
Step by step, the book explains core concepts, from basic to advanced. Code samples are in Java and include guidelines for different application-specific needs. You'll also learn how to extend the API to write custom components and best practices for using the feature-rich log4j API. This book concludes with enterprise Java applications using log4j with JSP and J2EE.