⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 

Class Category

java.lang.Object
|
+--org.apache.log4j.Category

All Implemented Interfaces:
AppenderAttachable

Known Direct Subclasses:
Logger


class Category
extends java.lang.Object
implements AppenderAttachable

This class has been deprecated and replaced by the Logger subclass. It will be kept around to preserve backward compatibility until mid 2003.

Logger is a subclass of Category, i.e. it extends Category. In other words, a logger is a category. Thus, all operations that can be performed on a category can be performed on a logger. Whenever log4j is asked to produce a Category object, it will instead produce a Logger object. However, methods that previously accepted category objects still continue to accept category objects.

For example, the following are all legal and will work as expected.