public class LogFileHandler extends Handler
Constructor and Description |
---|
LogFileHandler() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
static int |
getMaxLogCount() |
static long |
getMaxSizeBytes() |
static int |
getMinAmountOfLogsToKeep() |
static DirectoryCleaner |
newCleaner() |
static DirectoryCleaner |
newCleaner(long maxLogsSizeBytes,
int maxLogsDirectories,
int minAmountOfLogsToKeep) |
void |
publish(LogRecord record) |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
public LogFileHandler() throws SecurityException
SecurityException
public static long getMaxSizeBytes()
public static int getMaxLogCount()
public static int getMinAmountOfLogsToKeep()
public void close() throws SecurityException
close
in class Handler
SecurityException
public static DirectoryCleaner newCleaner()
public static DirectoryCleaner newCleaner(long maxLogsSizeBytes, int maxLogsDirectories, int minAmountOfLogsToKeep)