Examples of LogEvent


Examples of co.cask.cdap.common.logging.LogEvent

    this.collector = new LogCollector(configuration, hConfiguration);
  }

  @Override
  public boolean write(final String tag, final String level, final String message) {
    LogEvent event = new LogEvent(tag, level, message);
    collector.log(event);
    return true;
  }
View Full Code Here

Examples of co.cask.tigon.logging.LogEvent

    this.collector = new LogCollector(configuration, hConfiguration);
  }

  @Override
  public boolean write(final String tag, final String level, final String message) {
    LogEvent event = new LogEvent(tag, level, message);
    collector.log(event);
    return true;
  }
View Full Code Here

Examples of com.atlauncher.evnt.LogEvent

    @Override
    public void run() {
        try {
            while (true) {
                LogEvent next = this.queue.take();
                if (next != null) {
                    next.post(this.writer);
                }
            }
        } catch (Exception ex) {
            ex.printStackTrace(System.err);
        }
View Full Code Here

Examples of com.google.gwt.dev.shell.log.SwingTreeLogger.LogEvent

        return;
      }
      Object userObject = ((DefaultMutableTreeNode) treeNode).getUserObject();
      String text = userObject.toString();
      if (userObject instanceof LogEvent) {
        LogEvent event = (LogEvent) userObject;
        text = event.getFullText();
      }
      details.setText(text);
    }
  }
View Full Code Here

Examples of com.google.speedtracer.client.model.LogEvent

      case XhrLoadEvent.TYPE:
        details.put("Url", new StringCellRenderer(
            e.<XhrLoadEvent> cast().getUrl()));
        break;
      case LogEvent.TYPE:
        LogEvent logEvent = e.cast();
        details.put("Message", new StringCellRenderer(logEvent.getMessage()));
        break;
      case JavaScriptExecutionEvent.TYPE:
        JavaScriptExecutionEvent jsExecEvent = e.cast();
        JSOArray<StackFrame> function = JSOArray.create();
        function.push(StackFrame.create(jsExecEvent.getScriptName(),
View Full Code Here

Examples of com.leansoft.logging.thrift.LogEvent

  static Random random = new Random();
  static ThreadLocalTSerializer tSerializer = new ThreadLocalTSerializer();
  static ThreadLocalTDeserializer tDeserializer = new ThreadLocalTDeserializer();
 
  public static LogEvent genRandomLogEvent(int maxMessageSize) {
    LogEvent logEvent = new LogEvent();
    logEvent.createdTime = System.currentTimeMillis();
    logEvent.hostId = "localhost";
    int value = random.nextInt(5);
    logEvent.logLevel = LogLevel.findByValue(value);
    int size = random.nextInt(maxMessageSize) + 1;
View Full Code Here

Examples of com.log4jviewer.domain.LogEvent

        }
    }

    private void addLogRecord(final LogRecord logRecord) throws ParseException {
        if (logRecord != null) {
            LogEvent logEvent = new FileLogEvent(logRecord);
            logEventContainer.notifyListeners(logEvent);
        }
    }
View Full Code Here

Examples of com.mysql.jdbc.LogEvent

    conn.setSlaveId(127);

    conn.startReplicaCommand();

    while (true) {
      final LogEvent event = conn.getNext();
      System.out.println(event);
      if (event == LogEvent.ENUM_END_EVENT) {
        break;
      }
    }
View Full Code Here

Examples of com.opengamma.util.log.LogEvent

public class ExecutionLogFudgeBuilderTest {

  @Test
  public void roundTrip() {
    MutableExecutionLog log = new MutableExecutionLog(ExecutionLogMode.FULL);
    LogEvent errorEvent = new SimpleLogEvent(LogLevel.ERROR, "error msg");
    LogEvent infoEvent1 = new SimpleLogEvent(LogLevel.INFO, "info msg");
    LogEvent infoEvent2 = new SimpleLogEvent(LogLevel.INFO, "info msg2");
    log.add(errorEvent);
    log.add(infoEvent1);
    log.add(infoEvent2);
    String execptionMsg = "exception msg";
    assertEquals(log.getLogLevels(), EnumSet.of(LogLevel.ERROR, LogLevel.INFO));
View Full Code Here

Examples of com.taobao.tddl.dbsync.binlog.LogEvent

        decoder.handle(LogEvent.ROTATE_EVENT);
        decoder.handle(LogEvent.QUERY_EVENT);
        decoder.handle(LogEvent.XID_EVENT);
        LogContext context = new LogContext();
        while (fetcher.fetch()) {
            LogEvent event = null;
            event = decoder.decode(fetcher, context);

            if (event == null) {
                throw new CanalParseException("parse failed");
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.