Class LogFileParser


  • public final class LogFileParser
    extends Object
    A log file parser. The log file is parsed by the end with a limit of [limit] events.
    • Method Detail

      • parseFile

        public static List<Map<String,​Object>> parseFile​(File logFile,
                                                               Map<String,​Object> filters,
                                                               int limit,
                                                               org.slf4j.Logger logger)
                                                        throws IOException
        Parse the log file.
        Parameters:
        logFile - The log file
        filters - The filters on logs
        limit - The limit of events
        logger - The logger
        Returns:
        A List of parsed log lines
        Throws:
        IOException - if an error occurs