Application Logs and the Logger Class Wyoming

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

Advanced Computers Inc
(307) 733-2263
1725 River Dr
Jackson, WY
Sample Master
(307) 235-6437
535 N Lennox St
Casper, WY
Realtime Inc
(307) 684-1606
4 Cowboy Trl
Buffalo, WY
Erc Computing Services
(307) 638-7614
516 Randall Ave
Cheyenne, WY
Roys Tech Works
(307) 632-5663
Cheyenne, WY
Stellar Programing & Consulting Inc
(307) 234-3997
PO Box 1751
Casper, WY
Brown Gary D
(307) 634-4626
3701 Ostdiek Ct
Cheyenne, WY
Rnd Consulting
(307) 382-4503
901 Eisenhower Dr
Rock Springs, WY
Raven Group the
(307) 473-8446
Casper, WY
Microtechnology Consultants
(307) 265-2570
364 N Nebraska Ave
Casper, WY

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
Related Local Events
Board of Directors
Dates: 5/18/2010 - 5/18/2010
Location: Chamber of Commerce
Gillette, WY
View Details

Board of Directors
Dates: 9/21/2010 - 9/21/2010
Location: Chamber of Commerce
Gillette, WY
View Details

Board of Directors
Dates: 2/16/2010 - 2/16/2010
Location: Chamber of Commerce
Gillette, WY
View Details

Board of Directors
Dates: 11/17/2009 - 11/17/2009
Location: Chamber of Commerce
Gillette, WY
View Details

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