org.apache.log4j.varia
public class ExternallyRolledFileAppender extends RollingFileAppender
This method of triggering roll over has the advantage of being operating system independent, fast and reliable.
A simple application {@link 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 prevent undesired rollovers.
Since: version 0.9.0
Field Summary | |
---|---|
static String | OK
The string constant sent to acknowledge a roll over. |
static String | ROLL_OVER
The string constant sent to initiate a roll over. |
Constructor Summary | |
---|---|
ExternallyRolledFileAppender()
The default constructor does nothing but calls its super-class
constructor. |
Method Summary | |
---|---|
void | activateOptions()
Start listening on the port specified by a preceding call to
{@link #setPort}. |
int | getPort()
Returns value of the Port option. |
void | setPort(int port)
The Port [roperty is used for setting the port for
listening to external roll over messages. |