jsonGen.writeStringField(fieldMessage, event.getMessage()
.toString());
}
if (shouldInclude(fieldFile)) {
final LocationInfo location = event.getLocationInformation();
jsonGen.writeStringField(fieldFile, location.getFileName());
}
if (shouldInclude(fieldClass)) {
final LocationInfo location = event.getLocationInformation();
jsonGen.writeStringField(fieldClass, location.getClassName());
}
if (shouldInclude(fieldMethod)) {
final LocationInfo location = event.getLocationInformation();
jsonGen.writeStringField(fieldMethod, location.getMethodName());
}
if (shouldInclude(fieldLine)) {
final LocationInfo location = event.getLocationInformation();
jsonGen.writeStringField(fieldLine, location.getLineNumber());
}
}