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.
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.