this.type = type;
}
public
String convert(PaxLoggingEvent event) {
PaxLocationInfo locationInfo = event.getLocationInformation();
switch(type) {
/*case FULL_LOCATION_CONVERTER:
return locationInfo.fullInfo;*/
case METHOD_LOCATION_CONVERTER:
return locationInfo.getMethodName();
case LINE_LOCATION_CONVERTER:
return locationInfo.getLineNumber();
case FILE_LOCATION_CONVERTER:
return locationInfo.getFileName();
default: return null;
}
}