Package org.restlet.engine.log
Class AccessLogFileHandler
java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
java.util.logging.FileHandler
org.restlet.engine.log.AccessLogFileHandler
Log file handler that uses the
AccessLogFormatter by default. Also
useful in configuration files to differentiate from the
FileHandler.- Author:
- Jerome Louvel
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.AccessLogFileHandler(String pattern) Constructor.AccessLogFileHandler(String pattern, boolean append) Constructor.AccessLogFileHandler(String pattern, int limit, int count) Constructor.AccessLogFileHandler(String pattern, int limit, int count, boolean append) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinit()Initialization code common to all constructors.Methods inherited from class java.util.logging.FileHandler
close, publishMethods inherited from class java.util.logging.StreamHandler
flush, isLoggable, setEncoding, setOutputStreamMethods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
AccessLogFileHandler
Constructor.- Throws:
IOExceptionSecurityException
-
AccessLogFileHandler
Constructor.- Parameters:
pattern- The name of the output file.- Throws:
IOExceptionSecurityException
-
AccessLogFileHandler
Constructor.- Parameters:
pattern- The name of the output file.append- Specifies append mode.- Throws:
IOExceptionSecurityException
-
AccessLogFileHandler
public AccessLogFileHandler(String pattern, int limit, int count) throws IOException, SecurityException Constructor.- Parameters:
pattern- The name of the output file.limit- The maximum number of bytes to write to any one file.count- The number of files to use.- Throws:
IOExceptionSecurityException
-
AccessLogFileHandler
public AccessLogFileHandler(String pattern, int limit, int count, boolean append) throws IOException, SecurityException Constructor.- Parameters:
pattern- The name of the output file.limit- The maximum number of bytes to write to any one file.count- The number of files to use.append- Specifies append mode.- Throws:
IOExceptionSecurityException
-
-
Method Details
-
init
protected void init()Initialization code common to all constructors.
-