public class AccessLogFormatParser extends Object
The syntax is based on Apache httpd log format. Here are the supported directives:
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 String |
COMBINED_LOG_FORMAT
The combined log format.
|
static String |
COMMON_LOG_FORMAT
The common log format.
|
Constructor and Description |
---|
AccessLogFormatParser(String spec)
Creates an AccessLogFormatParser.
|
Modifier and Type | Method and Description |
---|---|
AccessLog |
newAccessLogger()
Returns a new AccessLogger for the specified log format.
|
String |
toString() |
public static final String COMBINED_LOG_FORMAT
public static final String COMMON_LOG_FORMAT
public AccessLogFormatParser(String spec)
spec
- The log format. When null the Common Log Format is used.