|
WEB4J Development Tools 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogParser
Generic interface for parsing an entire log file into specific records.
A single implementation of this interface is provided, which parses logs in the format emitted by default by JDK loggers. This is the default format for both the WEB4J framework classes, and the popular Tomcat server.
If your application or server uses a different log file format, then you will need to
LogParserInstance
Method Summary | |
---|---|
List<LoggerRecord> |
parse(String aLogFileContents,
ParsedCriteria aCriteria)
Parse the contents of a log file into LoggerRecord objects. |
Method Detail |
---|
List<LoggerRecord> parse(String aLogFileContents, ParsedCriteria aCriteria)
LoggerRecord
objects.
Design Note
This interface does not use streams. Streams would likely be more
performant in handling large files. However, since this tool is meant as
a development tool, and not for production (because of
security concerns), this is usually acceptable, since during development
log files rarely become excessively large.
|
WEB4J Development Tools 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |