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 | |||||||||||||||||
| ISBN10: | 2-97003690-8 | |||||||||||||||||
| publisher: | QOS.ch | |||||||||||||||||
| published: | 2003-05-07 | |||||||||||||||||
| by: | Ceki Gülcü | |||||||||||||||||
| ||||||||||||||||||
![]() |
and suggestions to improve this page to Roedy Green : | ||
| Canadian Mind Products | |||
| mindprod.com IP:[65.110.21.43] | |||
| Your face IP:[38.103.63.18] | ![]() | ||
| You are visitor number 8,536. | |||
| You can get a fresh copy of this page from: | or possibly from your local J: drive (Java virtual drive/Mindprod website mirror) | ||
| http://mindprod.com/jgloss/logging.html | J:\mindprod\jgloss\logging.html | ||