| Home >> All >> org >> apache >> log4j >> [ varia Javadoc ] |
| | org.apache.log4j.varia.test.* (2) |
org.apache.log4j.varia: Javadoc index of package org.apache.log4j.varia.
Package Samples:
org.apache.log4j.varia.test: Contains various appenders, filters and other odds and ends.
Classes:
LevelRangeFilter: This is a very simple filter based on level matching, which can be used to reject messages with priorities outside a certain range. The filter admits three options LevelMin , LevelMax and AcceptOnMatch . If the level of the org.apache.log4j.spi.LoggingEvent is not between Min and Max (inclusive), then Filter.DENY > Filter.DENY 55 is returned. If the Logging event level is within the specified range, then if AcceptOnMatch is true, Filter.ACCEPT > Filter.ACCEPT 55 is returned, and if AcceptOnMatch is false, Filter.NEUTRAL > Filter.NEUTRAL 55 is returned. If LevelMin w is not defined, then there is ...
LevelMatchFilter: This is a very simple filter based on level matching. The filter admits two options LevelToMatch and AcceptOnMatch . If there is an exact match between the value of the LevelToMatch option and the level of the org.apache.log4j.spi.LoggingEvent , then the decide(org.apache.log4j.spi.LoggingEvent) 55 method returns Filter.ACCEPT > Filter.ACCEPT 55 in case the AcceptOnMatch option value is set to true , if it is false then Filter.DENY > Filter.DENY 55 is returned. If there is no match, Filter.NEUTRAL > Filter.NEUTRAL 55 is returned.
StringMatchFilter: This is a very simple filter based on string matching. The filter admits two options StringToMatch and AcceptOnMatch . If there is a match between the value of the StringToMatch option and the message of the org.apache.log4j.spi.LoggingEvent , then the decide(LoggingEvent) 55 method returns Filter.ACCEPT > Filter.ACCEPT 55 if the AcceptOnMatch option value is true, if it is false then Filter.DENY > Filter.DENY 55 is returned. If there is no match, Filter.NEUTRAL > Filter.NEUTRAL 55 is returned.
ExternallyRolledFileAppender: This appender listens on a socket on the port specified by the Port property for a "RollOver" message. When such a message is received, the underlying log file is rolled over and an acknowledgment message is sent back to the process initiating the roll over. This method of triggering roll over has the advantage of being operating system independent, fast and reliable. A simple application Roller is provided to initiate the roll over. Note that the initiator is not authenticated. Anyone can trigger a rollover. In production environments, it is recommended that you add some form of protection to ...
Roller: A simple application to send roll over messages to a potentially remote ExternallyRolledFileAppender . It takes two arguments, the host_name and port_number where the ExternallyRolledFileAppender is listening.
FallbackErrorHandler: The FallbackErrorHandler implements the ErrorHandler interface such that a secondary appender may be specified. This secondary appender takes over if the primary appender fails for whatever reason. The error message is printed on System.err , and logged in the new secondary appender.
DenyAllFilter: This filter drops all logging events. You can add this filter to the end of a filter chain to switch from the default "accept all unless instructed otherwise" filtering behaviour to a "deny all unless instructed otherwise" behaviour.
Loop: This test program reads a config file and attempts to log to the appenders specified as many times as specified by the second loopLength parameter.
NullAppender: A NullAppender merely exists, it never outputs a message to any device.
HUP
HUPNode
ReloadingPropertyConfigurator
JDBCTest
| Home | Contact Us | Privacy Policy | Terms of Service |