CHAPTER 3

image

Destination of Logging—The Appender Objects

In the previous chapter, you learned about the Logger objects and examined the capabilities of log4j. The ability to filter logging information and use different methods in the Logger class is a great feature for application developers. But the Logger itself is not capable of printing logging messages. It does so with the help of Appender objects. Appender objects are primarily responsible for printing logging messages to different destinations such as consoles, files, sockets, NT event logs, etc. Occasionally, Appender objects can have Filter objects associated with them to make further ...

Get Pro Apache Log4j, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.