org.jivesoftware.util.log.output.io.rotate
Class RotatingFileTarget
java.lang.Object
org.jivesoftware.util.log.output.AbstractTarget
org.jivesoftware.util.log.output.AbstractOutputTarget
org.jivesoftware.util.log.output.io.StreamTarget
org.jivesoftware.util.log.output.io.FileTarget
org.jivesoftware.util.log.output.io.rotate.RotatingFileTarget
- All Implemented Interfaces:
- ErrorAware, LogTarget
public class RotatingFileTarget
- extends FileTarget
This is a basic Output log target that writes to rotating files.
- Author:
- Peter Donald, Stephen McConnell, Bernhard Huber
Method Summary |
void |
rotate()
|
void |
write(String data)
Output the log message, and check if rotation is needed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RotatingFileTarget
public RotatingFileTarget(Formatter formatter,
RotateStrategy rotateStrategy,
FileStrategy fileStrategy)
throws IOException
- Construct RotatingFileTarget object.
- Parameters:
formatter
- Formatter to be used
- Throws:
IOException
rotate
public void rotate()
throws IOException
- Throws:
IOException
write
public void write(String data)
- Output the log message, and check if rotation is needed.
- Overrides:
write
in class StreamTarget
- Parameters:
data
- the data to be output
Copyright © 2003-2008 Jive Software.