logRecord = new LogRecord();
for (int i = 0; i < logFields.size(); i++) {
String value = patternMatcher.group(i + 1).trim();
AbstractField logField = logFields.get(i);
LogFieldName fieldName = logField.getLogFieldName();
Object fieldValue = logField.decodeValue(value);
switch (fieldName) {
case CATEGORY:
logRecord.setCategoryName((String) fieldValue);