@SuppressWarnings("serial")
public class RemoteLoggerServiceImpl extends RemoteServiceServlet implements RemoteLoggerService {
public final void log(ArrayList<LogMessage> logMessages) {
for (Iterator<LogMessage> iterator = logMessages.iterator(); iterator.hasNext();) {
LogMessage logMessage = iterator.next();
try {
Throwable throwable = UnwrappedClientThrowable.getInstanceOrNull(logMessage.getWrappedClientThrowable());
HttpServletRequest request = getThreadLocalRequest();
String message = "[" + request.getRemoteAddr() + " " + logMessage.getMessageSequence()
+ "] " + logMessage.getMessage();
switch (logMessage.level) {
case Log.LOG_LEVEL_TRACE:
Log.trace(message, throwable);
break;
case Log.LOG_LEVEL_DEBUG: