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
-
public class AccessLogFileHandler extends java.util.logging.FileHandler
Log file handler that uses theAccessLogFormatter
by default. Also useful in configuration files to differentiate from theFileHandler
.- Author:
- Jerome Louvel
-
-
Constructor Summary
Constructors Constructor Description AccessLogFileHandler()
Constructor.AccessLogFileHandler(java.lang.String pattern)
Constructor.AccessLogFileHandler(java.lang.String pattern, boolean append)
Constructor.AccessLogFileHandler(java.lang.String pattern, int limit, int count)
Constructor.AccessLogFileHandler(java.lang.String pattern, int limit, int count, boolean append)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
init()
Initialization code common to all constructors.-
Methods inherited from class java.util.logging.StreamHandler
flush, isLoggable, setEncoding, setOutputStream
-
-
-
-
Constructor Detail
-
AccessLogFileHandler
public AccessLogFileHandler() throws java.io.IOException, java.lang.SecurityException
Constructor.- Throws:
java.io.IOException
java.lang.SecurityException
-
AccessLogFileHandler
public AccessLogFileHandler(java.lang.String pattern) throws java.io.IOException, java.lang.SecurityException
Constructor.- Parameters:
pattern
- The name of the output file.- Throws:
java.io.IOException
java.lang.SecurityException
-
AccessLogFileHandler
public AccessLogFileHandler(java.lang.String pattern, boolean append) throws java.io.IOException, java.lang.SecurityException
Constructor.- Parameters:
pattern
- The name of the output file.append
- Specifies append mode.- Throws:
java.io.IOException
java.lang.SecurityException
-
AccessLogFileHandler
public AccessLogFileHandler(java.lang.String pattern, int limit, int count) throws java.io.IOException, java.lang.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:
java.io.IOException
java.lang.SecurityException
-
AccessLogFileHandler
public AccessLogFileHandler(java.lang.String pattern, int limit, int count, boolean append) throws java.io.IOException, java.lang.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:
java.io.IOException
java.lang.SecurityException
-
-