under a CompositeFilter if more than one Filter is defined. This is because the appender associated shows how multiple filters can be configured on the ConsoleAppender. Configuration of Log4j 2 can be accomplished in 1 of 4 ways: This page focuses primarily on configuring Log4j through a configuration file. sized applications will have thousands of logging statements embedded normal logging within appenders could create infinite recursion which Log4j will detect and cause The user name required to access the remote logging configuration file. of com.foo.Bar, which in this case is the root logger, is referenced. To begin parsing and tailing A third approach, also used extensively by Log4j 2, is to use the LoggerContextRule included in the generated configuration. The components that support using scripts do so by allowing a