Log4j Concepts: Difference between revisions
Jump to navigation
Jump to search
(→Logger) |
No edit summary |
||
Line 5: | Line 5: | ||
=Logger= | =Logger= | ||
Logger is a subclass of [[#Category|Category]] and extends it. [[#Category|Category]] has been deprecated. | Logger is a subclass of [[#Category|Category]] and extends it. [[#Category|Category]] has been deprecated. Internally, whenever log4j is asked to produce a Category object, it will instead produce a Logger object. In order to preserve backward compatibility, methods that previously accepted category objects still continue to accept category objects. | ||
=Category= | =Category= | ||
<blockquote style="background-color: Gold; border: solid thin Goldenrod;"> | <blockquote style="background-color: Gold; border: solid thin Goldenrod;"> | ||
:This class has been deprecated and replaced with the [[#Logger|Logger]] subclass. | :This class has been deprecated and replaced with the [[#Logger|Logger]] subclass. There is no need for new client code to use or refer to the Category class. | ||
</blockquote> | </blockquote> | ||
Revision as of 23:55, 7 August 2016
Internal
Logger
Logger is a subclass of Category and extends it. Category has been deprecated. Internally, whenever log4j is asked to produce a Category object, it will instead produce a Logger object. In order to preserve backward compatibility, methods that previously accepted category objects still continue to accept category objects.
Category
- This class has been deprecated and replaced with the Logger subclass. There is no need for new client code to use or refer to the Category class.