Samples JDK
Classes
Package com.freemindcafe.apache.log4j.sample1

Additivity can turn off the appender chaining. More...

Classes

class  App
 
class  BarBean
 
class  FooBean
 

Detailed Description

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.