deobfuscator = new StackTraceDeobfuscator(symbolMaps);
}
public final ArrayList<LogRecord> log(ArrayList<LogRecord> logRecords) {
for (Iterator<LogRecord> iterator = logRecords.iterator(); iterator.hasNext();) {
LogRecord record = iterator.next();
try {
HttpServletRequest request = getThreadLocalRequest();
record.set("remoteAddr", request.getRemoteAddr());
String xForwardedFor = request.getHeader(X_FORWARDED_FOR);
if (xForwardedFor != null) {
record.set(X_FORWARDED_FOR, xForwardedFor);
}
deobfuscate(record);
Log.log(record);
} catch (RuntimeException e) {
System.err.println("Failed to log message due to " + e.toString());