Package com.allen_sauer.gwt.log.client

Examples of com.allen_sauer.gwt.log.client.LogMessage


@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:
View Full Code Here

TOP

Related Classes of com.allen_sauer.gwt.log.client.LogMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.