Samples JDK
|
Additivity can turn off the appender chaining. More...
Classes | |
class | App |
class | BarBean |
class | FooBean |
Additivity can turn off the appender chaining.
log4j uses a hierarchy of loggers. Log messages are send to all the ancestors's appenders.
Using additivity we can turn off this nature.
TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
For this example the log file is generated with in the package directory.