LOG4J « Library Product « Java Articles

Home
Java Articles
1.Build Deploy
2.Class
3.Core Library
4.Data Types
5.Database JDBC
6.Design
7.Development
8.File Input Output
9.Graphics Desktop
10.J2EE Enterprise
11.J2ME Wireless
12.JVM
13.Language
14.Library Product
15.Network
16.Security
17.SOA Web Services
18.Test
19.Web Development
20.XML
Java Articles » Library Product » LOG4J 

1. Java Application Instrumentation with Log4J    devx.com

Fine-grained Control Over Logs Log interception is just one approach to application instrumentation. The advantage of log interception is that it is real-time, simple, pure Java—and relatively lightweight. With so few classes or extra processing, it is a production-friendly approach. By leveraging log4j you have fine-grained control over which logs get processed and at which level. Measurement can be turned on and off with one line of configuration.

2. Log4j delivers control over logging    ibm.com

Log4j is a popular logging package written in Java. One of its distinctive features includes the notion of inheritance in categories. Using a category hierarchy, it is possible to control which log statements are output at arbitrary granularity, thus reducing the volume of logged output and minimizing the cost of logging.

3. Instant logging: Harness the power of log4j with Jabber    ibm.com

Figure 3 shows the IMAppender usage scenario: A log4j application configured to use IMAppender logs its debugging data wrapped as an IM message. The instant message is routed over the Jabber company-wide network to the system administrator's Jabber address (notice that publicly available Jabber servers might not be reliable enough for production use). Thus, whenever system administrators need to check on the application's status, they simply load their favorite Jabber client and connect to the Jabber server. As the figure shows, the administrator can be reached through different devices. He may log in to the server using his PC at work, or when he is away from his desk, he may use a Jabber client running on a handheld device to check messages.

4. Logging with log4j—An Efficient Way to Log Java Applications    developer.com

Log4j is an OpenSource logging API developed under the Jakarta Apache project. It provides a robust, reliable, fully configurable, easily extendible, and easy to implement framework for logging Java applications for debugging and monitoring purposes. Log4j allows developers to insert log statements in their code and configure them externally. This article covers the need for logging; a brief introduction to log4j; an explanation of its components and terminology, implementation, and configuration; its advantages and shortcomings; and how to use it to log Java applications.

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.