Application Logs and the Logger Class San Antonio TX

In his "Class of the Month" column, Mohseni examines the benefits of the core logging facilities contained in the java.util.logging package, which can be very helpful in maintenance and troubleshooting, as well as cross-platform compatibility.

Local Companies

Ecom-Elite Computer Consultants
(210) 495-4769
14350 Northbrook Dr Ste 200
San Antonio, TX
Inspired Elearning
(210) 579-0224
314 E Commerce St
San Antonio, TX
Your-It-Group
(210) 697-9404
3414 William Penn St
San Antonio, TX
Metrica Inc
(210) 822-8917
8620 N New Braunfels Ave
San Antonio, TX
Morin Consulting Design-Computer Electronics
(210) 434-5459
San Antonio, TX
SoloComputers.com
915-204-8163
7903 Pinebrook Dr.
San Antonio, TX
Insurance Automation Services
(210) 349-4642
1931 NW Military Hwy
San Antonio, TX
Rivercity Computer Group
(210) 545-1503
16022 Rough Oak St
San Antonio, TX
Computer Repair Zone
(210) 680-7770
12274 Bandera Rd
San Antonio, TX
Sirius Computer Technologies
(210) 697-9404
3414 William Penn St
San Antonio, TX

provided by: 
Originally published at Internet.com


Application logs serve different purposes. They can help in debugging, remote troubleshooting, and tracking. The logging requirements usually depend on who is going to use the logs. A developer would need a more detailed log compared to an end-user trying to fix a common problem.

Piroz Mohseni

Another common requirement is the ability to transmit the log (via a protocol such as HTTP) to a remote location. This not only allows supporting customers remotely but also serves as a useful data-gathering mechanism where development teams can create profiles of their application usage and the conditions under which it is failing.

Addressing these requirements, with JDK 1.4, the Java platform will support a set of core logging facilities contained in the java.util.logging package. The main class is Logger. You obtain an instance of Logger using the static getLogger() method with a unique name as its argument: static Logger logger = Logger.getLogger("com.foo.someClass");

Each Logger has a "Level" associated with it that can be set using the setLevel() method. This reflects a minimum Level that the logger cares about. If a Logger's level is set to null, then its effective level is inherited from its parent. The different levels can be found as fields in the Levels class: * SEVERE (highest value) * WARNING * INFO * CONFIG * FINE * FINER * FINEST (lowest value) ...

Read article at Internet.com site

Featured Local Company

SoloComputers.com

915-204-8163
7903 Pinebrook Dr.
San Antonio, TX
http://SoloComputers.com

Related Local Event
2009 IEEE International Conference on Systems, Man and Cybernetics - SMC
Dates: 10/11/2009 - 10/14/2009
Location: Hyatt Regency Riverwalk
San Antonio, TX
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML