Examples of LogEntry


Examples of com.twitter.zipkin.gen.LogEntry

    }

    private LogEntry create(final Event event) {
        final byte[] body = event.getBody();

        final LogEntry logEntry = new LogEntry();
        logEntry.setCategory(event.getHeaders().get(SCRIBE_CATEGORY));
        logEntry.setMessage(new String(body));
        return logEntry;
    }
View Full Code Here

Examples of edu.brown.hstore.cmdlog.LogEntry

        Client client = this.getClient();
        CatalogContext cc = this.getCatalogContext();
        VoltTable results[] = null;

        while (log_itr.hasNext()) {
            LogEntry entry = log_itr.next();

            assert(entry != null);
            //System.err.println("REDO :: TXN ID :" + entry.getTransactionId().longValue());
            //System.err.println("REDO :: PROC ID :" + entry.getProcedureId());

            Object[] entryParams = entry.getProcedureParams().toArray();
       
            String procName = cc.getProcedureById(entry.getProcedureId()).fullName();
            Procedure catalog_proc = cc.procedures.getIgnoreCase(procName);

            if(catalog_proc.getReadonly() == false){
                // System.out.println("Invoking procedure ::" + procName);
View Full Code Here

Examples of games.stendhal.tools.loganalyser.itemlog.consistency.LogEntry

    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      final Iterator<LogEntry> itr = queryDatabase(transaction, timedate);
      ItemInfo oldItemInfo = new ItemInfo();
      while (itr.hasNext()) {
        final LogEntry entry = itr.next();

        // detect group change (next item)
        if (!entry.getItemid().equals(oldItemInfo.getItemid())) {
          oldItemInfo = new ItemInfo();
          oldItemInfo.setItemid(entry.getItemid());
          oldItemInfo.setName("");
          oldItemInfo.setQuantity("1");
          oldItemInfo.setOwner(entry.getSource());
        }

        ItemInfo itemInfo = (ItemInfo) oldItemInfo.clone();

        itemInfo.setOwner(entry.getSource());
        ItemEventType eventType = ItemEventTypeFactory.create(entry.getEvent());
        eventType.process(entry, itemInfo);

        if (!oldItemInfo.getOwner().equals(itemInfo.getOwner())) {
          logTransfer(oldItemInfo, itemInfo, entry);
        }
View Full Code Here

Examples of generated.scribe.thrift.LogEntry

        transport.close();
    }

    public int log(String category, String message) {
        try {
            scribe.Log(Collections.singletonList(new LogEntry(category, message)));
            return 1;
        } catch (TException e) {
            e.printStackTrace();
            return 0;
        }
View Full Code Here

Examples of graphStructure.LogEntry

      {
        logEntryTree.setModel(new DefaultTreeModel(new DefaultMutableTreeNode("No Log Entries")));
      }
      else
      {
        LogEntry root = new LogEntry();
        root.setSubEntries(logEntries);
        logEntryTree.setModel(new DefaultTreeModel(root));
        logEntryTree.setRootVisible(false);
      }
      logEntryTree.repaint();
      logEntryTree.validate();
View Full Code Here

Examples of hudson.scm.SubversionChangeLogSet.LogEntry

            }
            if (o == null || getClass() != o.getClass()) {
                return false;
            }

            LogEntry that = (LogEntry) o;

            if (revision != that.revision) {
                return false;
            }
            if (author != null ? !author.equals(that.author) : that.author != null) {
View Full Code Here

Examples of ke.go.moh.oec.LogEntry

     */
    @Override
    public Object getData(int requestTypeId, Object requestData) {
        if (requestTypeId == RequestTypeId.LOG_ENTRY
                && requestData.getClass() == LogEntry.class) {
            LogEntry le = (LogEntry) requestData;
            Logger logger = Logger.getLogger(le.getClassName());
            logger.addHandler(fileHandler);
            Level level = Level.parse(le.getSeverity());
            logger.log(level, "++++ {0} {1} {2}", new Object[]{le.getDateTime().toString(), le.getInstance(), le.getMessage()});
            // fileHandler.flush();
        }
        return null; // No object returned.
    }
View Full Code Here

Examples of net.ftb.log.LogEntry

                    packjson.assets != null ? packjson.assets : base.getAssets(), Settings.getSettings().getRamMax(), pack.getMaxPermSize(), pack.getMcVersion(packVer), resp.getAuth(), isLegacy);
            LaunchFrame.MCRunning = true;
            if (LaunchFrame.con != null) {
                LaunchFrame.con.minecraftStarted();
            }
            StreamLogger.prepare(minecraftProcess.getInputStream(), new LogEntry().level(LogLevel.UNKNOWN));
            String[] ignore = { "Session ID is token" };
            StreamLogger.setIgnore(ignore);
            StreamLogger.doStart();
            String curVersion = (Settings.getSettings().getPackVer().equalsIgnoreCase("recommended version") ? pack.getVersion() : Settings.getSettings().getPackVer()).replace(".", "_");
            TrackerUtils.sendPageView(ModPack.getSelectedPack().getName(), "Launched / " + ModPack.getSelectedPack().getName() + " / " + curVersion.replace('_', '.'));
View Full Code Here

Examples of net.sf.logsaw.core.field.LogEntry

    Assert.isNotNull(log, "log"); //$NON-NLS-1$
    Assert.isNotNull(input, "input"); //$NON-NLS-1$
    Assert.isNotNull(collector, "collector"); //$NON-NLS-1$
    Assert.isTrue(isConfigured(), "Dialect should be configured by now"); //$NON-NLS-1$
    try {
      LogEntry currentEntry = null;
      IHasEncoding enc = (IHasEncoding) log.getAdapter(IHasEncoding.class);
      IHasLocale loc = (IHasLocale) log.getAdapter(IHasLocale.class);
      if (loc != null) {
        // Apply the locale
        getPatternTranslator().applyLocale(loc.getLocale(), rules);
      }
      IHasTimeZone tz = (IHasTimeZone) log.getAdapter(IHasTimeZone.class);
      if (tz != null) {
        // Apply the timezone
        getPatternTranslator().applyTimeZone(tz.getTimeZone(), rules);
      }
      LineIterator iter = IOUtils.lineIterator(input, enc.getEncoding());
      int minLinesPerEntry = getPatternTranslator().getMinLinesPerEntry();
      int lineNo = 0;
      int moreLinesToCome = 0;
      try {
        String line = null;
        while (iter.hasNext()) {
          lineNo++;
         
          if (minLinesPerEntry == 1) {
            // Simple case
            line = iter.nextLine();
          } else {
            String s = iter.nextLine();
            if (moreLinesToCome == 0) {
              Matcher m = getInternalPatternFirstLine().matcher(s);
              if (m.find()) {
                // First line
                line = s;
                moreLinesToCome = minLinesPerEntry - 1;
                continue;
              } else {
                // Some crazy stuff
                line = s;
              }
            } else if (iter.hasNext() && (moreLinesToCome > 1)) {
              // Some middle line
              line += IOUtils.LINE_SEPARATOR + s;
              moreLinesToCome--;
              continue;
            } else {
              // Last line
              line += IOUtils.LINE_SEPARATOR + s;
              if (!iter.hasNext()) {
                line += IOUtils.LINE_SEPARATOR;
              }
              moreLinesToCome = 0;
            }
          }
         
          // Error handling
          List<IStatus> statuses = null;
          boolean fatal = false; // determines whether to interrupt parsing
         
          Matcher m = getInternalPatternFull().matcher(line);
          if (m.find()) {
            // The next line matches, so flush the previous entry and continue
            if (currentEntry != null) {
              collector.collect(currentEntry);
              currentEntry = null;
            }
            currentEntry = new LogEntry();
            for (int i = 0; i < m.groupCount(); i++) {
              try {
                getPatternTranslator().extractField(currentEntry, getRules().get(i),
                    m.group(i + 1));
              } catch (CoreException e) {
                // Mark for interruption
                fatal = fatal || e.getStatus().matches(IStatus.ERROR);
               
                // Messages will be displayed later
                if (statuses == null) {
                  statuses = new ArrayList<IStatus>();
                }
                if (e.getStatus().isMultiStatus()) {
                  Collections.addAll(statuses, e.getStatus().getChildren());
                } else {
                  statuses.add(e.getStatus());
                }
              }
            }
           
            // We encountered errors or warnings
            if (statuses != null && !statuses.isEmpty()) {
              currentEntry = null; // Stop propagation
              IStatus status = new MultiStatus(PatternDialectPlugin.PLUGIN_ID,
                  0, statuses.toArray(new IStatus[statuses.size()]),
                  NLS.bind(Messages.APatternDialect_error_failedToParseLine, lineNo), null);
              if (fatal) {
                // Interrupt parsing in case of error
                throw new CoreException(status);
              } else {
                collector.addMessage(status);
              }
            }
          } else if (currentEntry != null) {
            // Append to message
            String msg = currentEntry.get(getFieldProvider().getMessageField());
            currentEntry.put(getFieldProvider().getMessageField(), msg + IOUtils.LINE_SEPARATOR + line);
          }
         
          if (collector.isCanceled()) {
            // Cancel parsing
            break;
View Full Code Here

Examples of net.sourceforge.pebble.logging.LogEntry

    assertTrue(comp.compare(c1, c1) == 0);
    assertTrue(comp.compare(c1, c2) < 0);
    assertTrue(comp.compare(c2, c1) > 0);

    c1.addLogEntry(new LogEntry());
    assertTrue(comp.compare(c1, c2) < 0);
    assertTrue(comp.compare(c2, c1) > 0);

    c2.addLogEntry(new LogEntry());
    c2.addLogEntry(new LogEntry());
    assertTrue(comp.compare(c1, c2) > 0);
    assertTrue(comp.compare(c2, c1) < 0);
  }
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.