|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log.output.AbstractTarget | +--org.apache.log.output.AbstractOutputTarget | +--org.apache.log.output.io.StreamTarget | +--org.apache.log.output.io.FileTarget | +--org.apache.log.output.io.rotate.RotatingFileTarget
This is a basic Output log target that writes to rotating files.
Fields inherited from class org.apache.log.output.AbstractOutputTarget |
m_formatter |
Constructor Summary | |
RotatingFileTarget(Formatter formatter,
RotateStrategy rotateStrategy,
FileStrategy fileStrategy)
Construct RotatingFileTarget object. |
Method Summary | |
protected void |
rotate()
|
protected void |
write(java.lang.String data)
Output the log message, and check if rotation is needed. |
Methods inherited from class org.apache.log.output.io.FileTarget |
getFile, openFile, setFile |
Methods inherited from class org.apache.log.output.io.StreamTarget |
close, setOutputStream, shutdownStream |
Methods inherited from class org.apache.log.output.AbstractOutputTarget |
doProcessEvent, getFormatter, open, output, setFormatter |
Methods inherited from class org.apache.log.output.AbstractTarget |
error, getErrorHandler, isOpen, processEvent, setErrorHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RotatingFileTarget(Formatter formatter, RotateStrategy rotateStrategy, FileStrategy fileStrategy) throws java.io.IOException
formatter
- Formatter to be usedMethod Detail |
protected void rotate() throws java.io.IOException
protected void write(java.lang.String data)
write
in class StreamTarget
org.apache.log.output.io.StreamTarget
data
- the data to be output
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |