Package org.verapdf.core.utils
Class LogsFileHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- java.util.logging.StreamHandler
-
- java.util.logging.FileHandler
-
- org.verapdf.core.utils.LogsFileHandler
-
public class LogsFileHandler extends FileHandler
-
-
Constructor Summary
Constructors Constructor Description LogsFileHandler()LogsFileHandler(String pattern)LogsFileHandler(String pattern, boolean append)LogsFileHandler(String pattern, int limit, int count)LogsFileHandler(String pattern, int limit, int count, boolean append)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconfigLogs()static voidcreateNewLogFile()static StringgetLogFile()static longgetPID()static voidsetLoggingLevel(Level level)-
Methods inherited from class java.util.logging.FileHandler
close, publish
-
Methods inherited from class java.util.logging.StreamHandler
flush, isLoggable, setEncoding, setOutputStream
-
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
-
-
-
-
Field Detail
-
SUFFIX
public static final String SUFFIX
-
-
Constructor Detail
-
LogsFileHandler
public LogsFileHandler() throws IOException, SecurityException- Throws:
IOExceptionSecurityException
-
LogsFileHandler
public LogsFileHandler(String pattern) throws IOException, SecurityException
- Throws:
IOExceptionSecurityException
-
LogsFileHandler
public LogsFileHandler(String pattern, boolean append) throws IOException, SecurityException
- Throws:
IOExceptionSecurityException
-
LogsFileHandler
public LogsFileHandler(String pattern, int limit, int count) throws IOException, SecurityException
- Throws:
IOExceptionSecurityException
-
LogsFileHandler
public LogsFileHandler(String pattern, int limit, int count, boolean append) throws IOException, SecurityException
- Throws:
IOExceptionSecurityException
-
-
Method Detail
-
getPID
public static long getPID()
-
getLogFile
public static String getLogFile() throws IOException
- Throws:
IOException
-
configLogs
public static void configLogs() throws IOException- Throws:
IOException
-
createNewLogFile
public static void createNewLogFile() throws IOException- Throws:
IOException
-
setLoggingLevel
public static void setLoggingLevel(Level level)
-
-