Examples of LogRecord


Examples of com.alibaba.otter.shared.common.model.config.record.LogRecord

    private ChannelService      channelService;
    private LogRecordDAO        logRecordDao;

    public void create(Event event) {
        LogRecord logRecord = new LogRecord();
        if (event instanceof NodeAlarmEvent) {
            NodeAlarmEvent nodeAlarmEvent = (NodeAlarmEvent) event;
            Pipeline tempPipeline = new Pipeline();
            tempPipeline.setId(nodeAlarmEvent.getPipelineId());
            logRecord.setPipeline(tempPipeline);
            logRecord.setNid(nodeAlarmEvent.getNid());
            logRecord.setTitle(nodeAlarmEvent.getTitle());
            logRecord.setMessage(nodeAlarmEvent.getMessage());
        }
        create(logRecord);
    }
View Full Code Here

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

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

    deobfuscator = new StackTraceDeobfuscator(symbolMaps);
  }

  public final ArrayList<LogRecord> 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());
        String xForwardedFor = request.getHeader(X_FORWARDED_FOR);
        if (xForwardedFor != null) {
          record.set(X_FORWARDED_FOR, xForwardedFor);
        }
        deobfuscate(record);
        Log.log(record);
      } catch (RuntimeException e) {
        System.err.println("Failed to log message due to " + e.toString());
View Full Code Here

Examples of com.flaptor.indextank.rpc.LogRecord

    };
   
    public static List<LogRecord> compactAndSort(Iterator<LogRecord> source) {
        Map<String, LogRecord> target = Maps.newHashMap();
        while (source.hasNext()) {
            LogRecord record = source.next();
            LogRecord compacted = target.get(record.get_docid());
            if (compacted == null) {
                target.put(record.get_docid(), new LogRecord(record));
            } else {
                mergeRecordInto(record, compacted);
            }
        }
        List<LogRecord> records = Lists.newArrayList(target.values());
View Full Code Here

Examples of com.google.apphosting.api.ApiProxy.LogRecord

    final long myTime = calendar.getTimeInMillis();
    final String myMsg = "Message";
    final Level myLevel = Level.info;

    // The timestamp of GAE LogRecord unit is microsecond.
    LogRecord logRecord = new LogRecord(myLevel, myTime * 1000, myMsg);

    final StringBuilder called = new StringBuilder();
    WjrGAEProdLogRecorder recorder = new WjrGAEProdLogRecorder() {
      @Override
      protected String formatLog(long millis, String level, String msg) {
View Full Code Here

Examples of com.sun.messaging.bridge.service.jms.tx.log.LogRecord

            throw e;
        }
        _recoveredLRs = _txlog.getAllLogRecords();
        _logger.log(Level.INFO, _jbr.getString(_jbr.I_TM_START_WITH, _tmName, String.valueOf(_recoveredLRs.size())));
        if (_logger.isLoggable(Level.FINE)) {
            LogRecord lr = null;
            Iterator<LogRecord> itr = _recoveredLRs.iterator();
            while (itr.hasNext()) {
                lr = itr.next();
                _logger.log(Level.INFO, "\t"+lr+"\n");
            }
View Full Code Here

Examples of com.taobao.loganalyzer.input.tanxclick.common.LogRecord

        }
        //5.4 匹配Section04(6)(不记录)
        //5.5 推广Section05(8)(不记录)
        flags[3] = false ;
        flags[4] = false ;
        LogRecord lr = new LogRecord();
        LogParser lp = new LogParser(line);

        for (int i = 0; i < sp.length; i++) {
            if (flags[i] == true) {
                boolean ret = sp[i].parse(lp, lr);
View Full Code Here

Examples of com.taobao.loganalyzer.input.tanxclick.common.LogRecord

     * @param line 需要解析的点击日志
     * @param flags 需要点击的点击日志的section的列表,true为需要解析,false为不需要解析;建议熟悉底层解析逻辑者使用。
     * @return 解析的结果,存储在ClickLog中,null表示格式不符合
     */
    public static TanxClickLog parse(String line, boolean[] flags) {
        LogRecord lr = parseClick(line, flags);
        if (lr == null) return null;
        return new TanxClickLog(lr);
    }
View Full Code Here

Examples of com.taobao.loganalyzer.input.tanxpv.common.LogRecord

                        continue;
                    } else if (lp.curChar() == LogParser.CONTROL_A) {
                        if (!lp.hasNextChar()) return false;
                        break;
                    }
                    LogRecord inner_lr = new LogRecord();
                    //兴趣类目
                    inner_lr.addField("Category",        new LogField(LogField.TYPE_STRING, lp.getNextCD()));
                    //分数
                    inner_lr.addField("Score",        new LogField(LogField.TYPE_STRING, lp.getNextCD()));

                    //消费能力
                    String ablity = lp.getNextField(new char[]{LogParser.CONTROL_C, LogParser.CONTROL_B,LogParser.CONTROL_A});
                    //不允许再包含^D
                    if (ablity!=null && ablity.indexOf(LogParser.CONTROL_D)>=0 )
                    {
                        return false ;
                    }
                    inner_lr.addField("ConsumeAbility",   new LogField(LogField.TYPE_STRING, ablity ));

                    list.add(inner_lr);

                } while (lp.getMatchedChar() != 0 && lp.getMatchedChar() != LogParser.CONTROL_B);
View Full Code Here

Examples of com.taobao.loganalyzer.input.tanxpv.common.LogRecord

        //flags[4] = false ;don't skip any more
        //flags[7] = false ; don't skip any more
        flags[8] = false ;
        flags[9] = false ;

        LogRecord lr = new LogRecord();
        LogParser lp = new LogParser(line);

        for (int i = 0; i < PV_SECTIONS; i++) {
            if (flags[i] == true) {
                boolean ret = sp[i].parse(lp, lr);
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.