public class AccessLogFormatParser
extends java.lang.Object
In addition, the following aliases for commonly utilized patterns:
%h %l %u %t "%r" %s %b
Common Log Format (CLF)%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"
Combined Log FormatModifier and Type | Field and Description |
---|---|
static java.lang.String |
COMBINED_LOG_FORMAT
The combined log format.
|
static java.lang.String |
COMMON_LOG_FORMAT
The common log format.
|
Constructor and Description |
---|
AccessLogFormatParser(java.lang.String spec)
Creates an AccessLogFormatParser.
|
Modifier and Type | Method and Description |
---|---|
AccessLog |
newAccessLogger()
Returns a new AccessLogger for the specified log format.
|
java.lang.String |
toString() |
public static final java.lang.String COMBINED_LOG_FORMAT
public static final java.lang.String COMMON_LOG_FORMAT
public AccessLogFormatParser(java.lang.String spec)
spec
- The log format. When null the Common Log Format is used.public AccessLog newAccessLogger()
public java.lang.String toString()
toString
in class java.lang.Object