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