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 {@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. |