|
||||||||||
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
public class FileManager
Manages actual File I/O for File Appenders.
Field Summary |
---|
Fields inherited from class org.apache.logging.log4j.core.appender.AbstractManager |
---|
count, LOGGER |
Constructor Summary | |
---|---|
protected |
FileManager(String fileName,
OutputStream os,
boolean append,
boolean locking)
|
Method Summary | |
---|---|
static FileManager |
getFileManager(String fileName,
boolean append,
boolean locking,
boolean bufferedIO)
Returns the FileManager. |
String |
getFileName()
Returns the name of the File being managed. |
boolean |
isAppend()
Returns the append status. |
boolean |
isLocking()
Returns the lock status. |
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.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 FileManager(String fileName, OutputStream os, boolean append, boolean locking)
Method Detail |
---|
public static FileManager getFileManager(String fileName, boolean append, boolean locking, boolean bufferedIO)
fileName
- The name of the file to manage.append
- true if the file should be appended to, false if it should be overwritten.locking
- true if the file should be locked while writing, false otherwise.bufferedIO
- true if the contents should be buffered as they are written.
protected void write(byte[] bytes, int offset, int length)
OutputStreamManager
write
in class OutputStreamManager
bytes
- The serialized Log event.offset
- The offset into the byte array.length
- The number of bytes to write.public String getFileName()
public boolean isAppend()
public boolean isLocking()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |