Package com.allen_sauer.gwt.log.client

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


@SuppressWarnings("serial")
public class RemoteLoggerServiceImpl extends RemoteServiceServlet implements RemoteLoggerService {

  public final void 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());
        Log.log(record);
      } catch (RuntimeException e) {
        System.err.println("Failed to log message due to " + e.toString());
        e.printStackTrace();
      }
View Full Code Here


      log(Log.LOG_LEVEL_WARN, category, message, e);
    }
  }

  private void log(int level, String category, String message, Throwable e) {
    LogRecord record = new LogRecord(category, level, message, e);
    sendToLoggers(record);
  }
View Full Code Here

TOP

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

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.