public final class DefaultLogFileProxy extends java.lang.Object implements LogFileProxy
Modifier and Type | Method and Description |
---|---|
static DefaultLogFileProxy |
attachToExistingFile(java.io.File file,
int maxSizePerFileInMB) |
void |
close() |
static DefaultLogFileProxy |
createNew(java.io.File baseFolder,
java.lang.String uniquePrefix,
int maxSizePerFileInMB) |
void |
delete() |
void |
flush() |
boolean |
isFull() |
void |
writeLine(java.lang.String line) |
public static DefaultLogFileProxy createNew(java.io.File baseFolder, java.lang.String uniquePrefix, int maxSizePerFileInMB) throws java.io.IOException
java.io.IOException
public static DefaultLogFileProxy attachToExistingFile(java.io.File file, int maxSizePerFileInMB) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface LogFileProxy
java.io.IOException
public void delete()
delete
in interface LogFileProxy
public void writeLine(java.lang.String line) throws java.io.IOException
writeLine
in interface LogFileProxy
java.io.IOException
public boolean isFull()
isFull
in interface LogFileProxy
public void flush()
flush
in interface LogFileProxy