Package nginx.clojure.logger

Examples of nginx.clojure.logger.TinyLogService


    return fuzzlyLazyClasses;
  }
   
    public static LoggerService getLog() {
        if (log == null) {
          log = new TinyLogService(TinyLogService.getSystemPropertyOrDefaultLevel(NGINX_CLOJURE_LOG_WAVE_LEVEL, MsgType.error), System.err, System.err);
        }
        return log;
    }
View Full Code Here


        return log.isDebugEnabled();
    }

    public void setDebug(boolean debug) {
        if (log instanceof TinyLogService) {
      TinyLogService tlog = (TinyLogService) log;
      tlog.setLevel(MsgType.debug);
    }
    }
View Full Code Here

        msgs.add("Method "+className+"#t_lock2(Ljava/util/concurrent/locks/Lock;)V contains potentially blocking call to java/util/concurrent/locks/Lock#lockInterruptibly()V");
       
        MethodDatabase db = new MethodDatabase(BlockingTest.class.getClassLoader());
        MethodDatabaseUtil.load(db, "nginx/clojure/wave/coroutine-method-db.txt");
        db.setAllowBlocking(true);
        db.setLog(new TinyLogService() {
          @Override
          public void warn(String message, Object ...args) {
            message = String.format(Locale.ENGLISH, message, args);
                assertTrue("Unexpected message: " + message, msgs.remove(message));
          }
View Full Code Here

  }
 
  public NginxClojureAsynChannel() {
    as = new NginxClojureAsynSocket(this);
    if (log == null) {
      log = new TinyLogService(TinyLogService.getSystemPropertyOrDefaultLevel(NginxClojureSocketImpl.NGINX_CLOJURE_LOG_SOCKET_LEVEL, MsgType.info), System.err, System.err);
    }
  }
View Full Code Here

  public NginxClojureSocketImpl() {
    if (Thread.currentThread() != NginxClojureRT.NGINX_MAIN_THREAD) {
      throw new IllegalAccessError("coroutine based sockets can only be called in main thread");
    }
    if (log == null) {
      log = new TinyLogService(TinyLogService.getSystemPropertyOrDefaultLevel(NGINX_CLOJURE_LOG_SOCKET_LEVEL, MsgType.info), System.err, System.err);
    }
  }
View Full Code Here

TOP

Related Classes of nginx.clojure.logger.TinyLogService

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.