org.apache.log.output.io.rotate
public class RotatingFileTarget extends FileTarget
| Constructor Summary | |
|---|---|
| RotatingFileTarget(Formatter formatter, RotateStrategy rotateStrategy, FileStrategy fileStrategy)
Construct RotatingFileTarget object.
| |
| RotatingFileTarget(boolean append, Formatter formatter, RotateStrategy rotateStrategy, FileStrategy fileStrategy)
Construct RotatingFileTarget object.
| |
| Method Summary | |
|---|---|
| protected void | rotate()
Rotates the file. |
| protected void | write(String data)
Output the log message, and check if rotation is needed. |
Parameters: formatter Formatter to be used rotateStrategy RotateStrategy to be used fileStrategy FileStrategy to be used
Throws: IOException if a file access or write related error occurs
Parameters: append true if file is to be appended to, false otherwise formatter Formatter to be used rotateStrategy RotateStrategy to be used fileStrategy FileStrategy to be used
Throws: IOException if a file access or write related error occurs
Throws: IOException if a file access or write related error occurs
Parameters: data the date to write to the target