There are logging classes built-in to Java 1.1.4+. Here is how you use them:
Log4J allows channels to stream different classes of messages to different files, and to configure logging behaviour after the code is compiled on a very fine granularity.
Instead of peppering your code with debugging println statements that you remove entirely when you find the bug, with logging you leave the logging/generic debug instrumentation code in place, and turn it on and off, in different parts of the program, to varying degrees of detail, at run time, without having to recompile. You normally leave at least a minimum amount of the logging engaged even in production to help track down trouble and to produce statistics.
Normally small project would not use a formal logging package, but almost any team project will be fitted with a logger.
![]() |
recommend book⇒The Complete Manual log4j | |
| paperback | ||
|---|---|---|
| ISBN13: | 978-2-97003690-6 | |
| publisher: | QOS.ch | |
| published: | 2003-05-07 | |
| by: | Ceki Gülcü | |
| You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) | |
| http://mindprod.com/jgloss/logging.html | J:\mindprod\jgloss\logging.html | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.191.106] | |
| Feedback | You are visitor number 10,767. | |