public interface LogParserFactory
Modifier and Type | Interface and Description |
---|---|
static class |
LogParserFactory.DefaultLogParserFactory |
Modifier and Type | Method and Description |
---|---|
static LogParserFactory |
createDefaultInstance()
Provides the default parser factory.
|
LogParser |
createParserForFormat(String format,
Class<?> clazz)
Creates an instance of the LogParser Implementation.
|
static LogParserFactory createDefaultInstance()
LogParser createParserForFormat(String format, Class<?> clazz) throws LogLineFormatException, IllegalClassException
format
- a String with the formatting tokens for describing the expected log line format to
match.clazz
- a class that has implemented the LogEntry interface and has fields mapped with the
LogElementMapping annotations matching the tokens in the format param.LogLineFormatException
- when the formatting tokens are invalid or cannot be used.IllegalClassException
- when the class object cannot be instanced, or reflected, or when the
LogElementMapping annotations are missing.Copyright © 2017 Jason "JRSofty" Reed. All rights reserved.