Package com.coalmine.connector.notification

Examples of com.coalmine.connector.notification.LoggedNotification


      return;
    }
   
    // TODO: Queue this up for later sending instead.
   
    LoggedNotification notification = new LoggedNotification(record.getThrown());
    notification.setSeverity(getSeverity(record.getLevel()));
    notification.setMessage(record.getMessage());
    notification.setMethodName(record.getSourceMethodName());
    notification.setClassName(record.getSourceClassName());
    notification.setThreadId(record.getThreadID());
    connector.send(notification);
  }
View Full Code Here


      FilterChain chain) throws IOException, ServletException {
   
    try {
      chain.doFilter(request, response);
    } catch (RuntimeException ex) {
      LoggedNotification notification = new LoggedNotification(ex);
      notification.setRequest(request);
      connector.send(notification);
      throw ex;
    }
  }
View Full Code Here

  }
 
  @Override
  public void uncaughtException(Thread thread, Throwable ex) {
    LOG.error("Uncaught exception! This will be logged in Coalmine", ex);   
    connector.send(new LoggedNotification(ex, gson));
  }
View Full Code Here

      return;
    }
   
    // TODO: Queue this up for later sending instead.
   
    LoggedNotification notification = buildLoggedNotification(record.getThrown());
    notification.setSeverity(getSeverity(record.getLevel()));
    notification.setMessage(record.getMessage());
    notification.setMethodName(record.getSourceMethodName());
    notification.setClassName(record.getSourceClassName());
    notification.setThreadId(record.getThreadID());
    connector.send(notification);
  }
View Full Code Here

  public void close() throws SecurityException {
    // Do nothing
  }
 
  protected LoggedNotification buildLoggedNotification(Throwable ex) {
    return new LoggedNotification(ex);
  }
View Full Code Here

TOP

Related Classes of com.coalmine.connector.notification.LoggedNotification

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.