LogLineParser class
Parses log lines against a compiled format template.
Constructors
- LogLineParser(String template)
-
Compiles
template(with{field}/{field:pattern}placeholders). Audited: 2026-06-12 11:26 EDTfactory - LogLineParser.apacheCombined()
-
Apache combined log format (common + "referer" "user-agent").
Audited: 2026-06-12 11:26 EDT
factory
- LogLineParser.apacheCommon()
-
Apache/NCSA common log format: host ident user
time"request" status size. Audited: 2026-06-12 11:26 EDTfactory - LogLineParser.nginxCombined()
-
nginx default
combinedaccess log (same shape as Apache combined). Audited: 2026-06-12 11:26 EDTfactory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String line) → Map< String, String> ? -
Parses
lineintofield → value, or null if the line doesn't match the template. Missing optional captures come back as empty strings. Audited: 2026-06-12 11:26 EDT -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited