Examples of Log


Examples of com.bluelotussoftware.service.spi.Log

        }
        return loggers;
    }

    public Log getFirstAvailableLogger() {
        Log log = null;
        Iterator<Log> it = serviceLoader.iterator();
        while (it.hasNext()) {
            log = it.next();
            break;
        }
View Full Code Here

Examples of com.dragome.compiler.utils.Log

      write("dragomeJs.loadScript(" + sizeOfAllJunks + ");");
      out.flush();
      out.close();
    }

    Log logger= Log.getLogger();
    String newJunkName= "webapp.js";
    logger.debug("Creating assembly " + newJunkName);
    out= new FileWriter(new File(assembly, newJunkName));
    sizeOfCurrentJunk= 0;
    junkCount++;
  }
View Full Code Here

Examples of com.ecyrd.speed4j.log.Log

        try
        {
            @SuppressWarnings("unchecked")
            Class<Log> swfClass = (Class<Log>) Class.forName( className );

            Log lg = swfClass.newInstance();

            lg.setName(logger);

            return lg;
        }
        catch (ClassNotFoundException e1)
        {
View Full Code Here

Examples of com.facebook.presto.hive.shaded.org.apache.commons.logging.Log

  /**
   * initialize or retrieve console object for SessionState.
   */
  public static LogHelper getConsole() {
    if (_console == null) {
      Log LOG = LogFactory.getLog("SessionState");
      _console = new LogHelper(LOG);
    }
    return _console;
  }
View Full Code Here

Examples of com.firefly.utils.log.Log

    queue.offer(logItem);
  }

  private void write() {
    for (LogItem logItem = null; (logItem = queue.poll()) != null;) {
      Log log = LogFactory.getInstance().getLog(logItem.getName());
      if (log instanceof FileLog) {
        FileLog fileLog = (FileLog) log;
        fileLog.write(logItem);
      }
    }
View Full Code Here

Examples of com.hdfs.pojo.Log

    try {
      PreparedStatement pstmt = conn.prepareStatement(sql);
      pstmt.setString(1, username);
      ResultSet rs = pstmt.executeQuery();
      while (rs.next()) {
        Log log = new Log();
        log.setUsername(rs.getString(1));
        log.setDate(rs.getString(2).substring(0, 19));
        log.setAction(rs.getString(3));
        log.setFilename(rs.getString(4));
        log.setPathname(rs.getString(5));
        logList.add(log);
      }
      return logList;
    } catch (SQLException e) {
      e.printStackTrace();
View Full Code Here

Examples of com.heroku.api.request.log.Log

     * Get logs for an app.
     * @param appName App name. See {@link #listApps} for a list of apps that can be used.
     * @return
     */
    public LogStreamResponse getLogs(String appName) {
        return connection.execute(new Log(appName), apiKey);
    }
View Full Code Here

Examples of com.jitcaforwin.trackinfoanalyzer.log.api.Log

public class OnlyExceptionsFilterTest {

  @Test
  public void testOkLog(){
    LogPrintoutFilter filter = LogPrintoutFilterFactory.getFilterForExceptionsOnly();
    Log logMock = EasyMock.createMock(Log.class);
    EasyMock.expect(logMock.getStatus()).andReturn(new com.jitcaforwin.trackinfoanalyzer.log.status.Ok());
    EasyMock.replay(logMock);
    assertFalse(filter.isPrintAllowed(logMock));
    EasyMock.verify(logMock);
  }
View Full Code Here

Examples of com.ketayao.ketacustom.log.Log

    }
   
    final HandlerMethod handlerMethod = (HandlerMethod)handler;
    Method method = handlerMethod.getMethod();
   
    final Log log = method.getAnnotation(Log.class);
    if (log != null) {
      // 得到LogMessageObject
      final LogMessageObject logMessageObject = LogUitls.getArgs();
      // 另起线程异步操作
      new Thread(new Runnable() {
       
        @Override
        public void run() {
          try {
            LogLevel lastLogLevel = logAPI.getRootLogLevel();
           
            // 先对自定义包等级做判断
            Map<String, LogLevel> customLogLevel = logAPI.getCustomLogLevel();
            if (!customLogLevel.isEmpty()) {
              Class<?> clazz = handlerMethod.getBean().getClass();
              String packageName = clazz.getPackage().getName();
             
              Set<String> keys = customLogLevel.keySet();
              for (String key : keys) {
                if (packageName.startsWith(key)) {
                  lastLogLevel = customLogLevel.get(key);
                  break;
                }
              }
            }
           
            LogMessageObject defaultLogMessageObject = logMessageObject;
            if (defaultLogMessageObject == null) {
              defaultLogMessageObject = LogMessageObject.newWrite();
            }
           
            if (defaultLogMessageObject.isWritten()) { // 判断是否写入log
              // 覆盖,直接写入日志
              if (log.override()) {
                logAPI.log(log.message(), defaultLogMessageObject.getObjects(), log.level());
              } else {
                // 不覆盖,参考方法的日志等级是否大于等于最终的日志等级
                if (!log.override() && log.level().compareTo(lastLogLevel) >= 0 ) {
                  logAPI.log(log.message(), defaultLogMessageObject.getObjects(), log.level());
                }
              }
            }           
          } catch (Exception e) {
            LOGGER.error(Exceptions.getStackTraceAsString(e));
View Full Code Here

Examples of com.lanyuan.entity.Log

    } else if (methodName.indexOf("delete") > -1) {
      opertype = "delete操作";
    }
    if(!Common.isEmpty(opertype)&&className.indexOf("UserLoginList")==-1){
      Long time = end - start;
      Log log = new Log();
      log.setUsername(user);
      log.setModule(name);
      log.setAction(opertype);
      log.setActionTime(time.toString());
      log.setUserIP(ip);
      logDao.add(log);
    }
    return result;
  }
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.