WEB4J Development Tools 4.10.0.0

hirondelle.web4jtools.logview.parser
Interface LogParser

All Known Implementing Classes:
LogParserForJDKDefault

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


Method Summary
 List<LoggerRecord> parse(String aLogFileContents, ParsedCriteria aCriteria)
          Parse the contents of a log file into LoggerRecord objects.
 

Method Detail

parse

List<LoggerRecord> parse(String aLogFileContents,
                         ParsedCriteria aCriteria)
Parse the contents of a log file into 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

Copyright Hirondelle Systems - Generated 2013Oct19.12.26