|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - The type of rotation policy configuration handled by
this retention policy implementation.public interface RotationPolicy<T extends LogRotationPolicyCfg>
This interface describes the rotation policy that should be used for the logger. Supported policies include size based and time based.
| Method Summary | |
|---|---|
void |
initializeLogRotationPolicy(T config)
Initializes this log rotation policy based on the information in the provided rotation policy configuration. |
boolean |
rotateFile(MultifileTextWriter writer)
This method indicates if the log file should be rotated or not. |
| Method Detail |
|---|
void initializeLogRotationPolicy(T config)
throws ConfigException,
InitializationException
config - The rotation policy configuration that contains the
information to use to initialize this policy.
ConfigException - If an unrecoverable problem arises in the process of
performing the initialization as a result of the server
configuration.
InitializationException - If a problem occurs during initialization that is not
related to the server configuration.boolean rotateFile(MultifileTextWriter writer)
writer - The multi file writer writing the file to be
checked.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||