|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.logging.log4j.core.appender.AbstractManager
org.apache.logging.log4j.core.appender.OutputStreamManager
org.apache.logging.log4j.core.appender.FileManager
org.apache.logging.log4j.core.appender.rolling.RollingFileManager
public class RollingFileManager
The Rolling File Manager.
| Field Summary |
|---|
| Fields inherited from class org.apache.logging.log4j.core.appender.AbstractManager |
|---|
count, LOGGER |
| Constructor Summary | |
|---|---|
protected |
RollingFileManager(String fileName,
String pattern,
OutputStream os,
boolean append,
long size,
long time)
|
| Method Summary | |
|---|---|
void |
checkRollover(LogEvent event,
TriggeringPolicy policy,
RolloverStrategy strategy)
Determine if a rollover should occur. |
static RollingFileManager |
getFileManager(String fileName,
String pattern,
boolean append,
boolean bufferedIO)
Returns a RollingFileManager. |
long |
getFileSize()
Returns the current size of the file. |
long |
getFileTime()
Returns the time the file was created. |
PatternProcessor |
getProcessor()
Returns the pattern processor. |
protected void |
write(byte[] bytes,
int offset,
int length)
Some output streams synchronize writes while others do not. |
| Methods inherited from class org.apache.logging.log4j.core.appender.FileManager |
|---|
getFileManager, getFileName, isAppend, isLocking |
| Methods inherited from class org.apache.logging.log4j.core.appender.OutputStreamManager |
|---|
close, flush, getManager, getOutputStream, isOpen, releaseSub, setFooter, setHeader, setOutputStream, write |
| Methods inherited from class org.apache.logging.log4j.core.appender.AbstractManager |
|---|
getCount, getName, hasManager, release |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected RollingFileManager(String fileName,
String pattern,
OutputStream os,
boolean append,
long size,
long time)
| Method Detail |
|---|
public static RollingFileManager getFileManager(String fileName,
String pattern,
boolean append,
boolean bufferedIO)
fileName - The file name.pattern - The pattern for rolling file.append - true if the file should be appended to.bufferedIO - true if data should be buffered.
protected void write(byte[] bytes,
int offset,
int length)
OutputStreamManager
write in class FileManagerbytes - The serialized Log event.offset - The offset into the byte array.length - The number of bytes to write.public long getFileSize()
public long getFileTime()
public void checkRollover(LogEvent event,
TriggeringPolicy policy,
RolloverStrategy strategy)
event - The LogEvent.policy - The TriggeringPolicy.strategy - The RolloverStrategy.public PatternProcessor getProcessor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||