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, setLevelpublic LogFileHandler()
throws SecurityException
SecurityExceptionpublic static long getMaxSizeBytes()
public static int getMaxLogCount()
public static int getMinAmountOfLogsToKeep()
public void close()
throws SecurityException
close in class HandlerSecurityExceptionpublic static DirectoryCleaner newCleaner()
public static DirectoryCleaner newCleaner(long maxLogsSizeBytes, int maxLogsDirectories, int minAmountOfLogsToKeep)