Examples of Slf4jLog


Examples of com.ecyrd.speed4j.log.Slf4jLog

      pLog.setPeriod(Configurator.getPerformanceCountersInterval());
      pLog.setJmx("AUTH.success,AUTH.fail");
      pLog.setSlf4jLogname("com.elasticinbox.speed4j.pop3.PeriodicalLogger");
      stopWatchFactory = StopWatchFactory.getInstance(pLog);
    } else {
      Slf4jLog pLog = new Slf4jLog();
      pLog.setName(SPEED4J_LOG_NAME);
      pLog.setSlf4jLogname("com.elasticinbox.speed4j.pop3.PeriodicalLogger");
      stopWatchFactory = StopWatchFactory.getInstance(pLog);
    }

    backend = new MailboxHandlerFactory();
View Full Code Here

Examples of com.ecyrd.speed4j.log.Slf4jLog

      pLog.setPeriod(Configurator.getPerformanceCountersInterval());
      pLog.setJmx("DELIVERY.success,DELIVERY.discard,DELIVERY.defer,DELIVERY.defer_failure,DELIVERY.reject_overQuota,DELIVERY.reject_nonExistent");
      pLog.setSlf4jLogname("com.elasticinbox.speed4j.lmtp.PeriodicalLogger");
      stopWatchFactory = StopWatchFactory.getInstance(pLog);
    } else {
      Slf4jLog pLog = new Slf4jLog();
      pLog.setName(SPEED4J_LOG_NAME);
      pLog.setSlf4jLogname("com.elasticinbox.speed4j.lmtp.PeriodicalLogger");
      stopWatchFactory = StopWatchFactory.getInstance(pLog);
    }

    DeliveryAgentFactory mdf = new DeliveryAgentFactory();
View Full Code Here

Examples of com.ecyrd.speed4j.log.Slf4jLog

    }

    @Test
    public void testSlf4jLog() throws InterruptedException
    {
        Slf4jLog log = new Slf4jLog();
        log.setSlf4jLogname("foo");
        StopWatchFactory swf = StopWatchFactory.getInstance(log);

        int iterations = 100;

        for( int i = 0; i < iterations; i++ )
View Full Code Here

Examples of org.eclipse.jetty.util.log.Slf4jLog

    }

    @Override
    protected synchronized void doStart() throws Exception
    {
        logger = new Slf4jLog(loggerName);
        super.doStart();
    }
View Full Code Here

Examples of org.eclipse.jetty.util.log.Slf4jLog

        run(options.isJointServerThread());
    }

    public void run(boolean join) throws Exception {
        System.setProperty("org.eclipse.jetty.util.log.class", Slf4jLog.class.getName());
        Slf4jLog log = new Slf4jLog("jetty");
        Log.setLog(log);

        WebAppContext webapp = new WebAppContext();
        webapp.setContextPath(options.getContextPath());

        String war = findWar(options.getWarLocation());
        if (war == null) {
            war = options.getWar();
        }
        if (war == null) {
            throw new IllegalArgumentException("No war or warLocation options set!");
        }
        webapp.setWar(war);
        webapp.setParentLoaderPriority(true);
        webapp.setLogUrlOnStart(true);
        webapp.setExtraClasspath(options.getExtraClassPath());

        // lets set a temporary directory so jetty doesn't bork if some process zaps /tmp/*
        String homeDir = System.getProperty("user.home", ".") + System.getProperty("hawtio.dirname", "/.hawtio");
        String tempDirPath = homeDir + "/tmp";
        File tempDir = new File(tempDirPath);
        tempDir.mkdirs();
        log.info("using temp directory for jetty: " + tempDir.getPath());
        webapp.setTempDirectory(tempDir);

        Server server = new Server(options.getPort());
        server.setHandler(webapp);

View Full Code Here

Examples of org.eclipse.jetty.util.log.Slf4jLog

    bindInterface = aBindInterface;
  }

  public void start() throws Exception {
    // Setting Slf4j for logging
    Log.setLog(new Slf4jLog());
   
    server = new Server(createThreadPool());

    server.addConnector(createConnector(server));
    server.setHandler(createHandlers());
View Full Code Here

Examples of org.eclipse.jetty.util.log.Slf4jLog

    private static final transient Logger LOG = LoggerFactory.getLogger(Main.class);

    public static void main(String[] args) {
        try {
            System.setProperty("org.eclipse.jetty.util.log.class", Slf4jLog.class.getName());
            Log.setLog(new Slf4jLog("jetty"));
            int port = Integer.parseInt(System.getProperty("jettyPort", "8080"));
            String contextPath = System.getProperty("context", "/hawtio");
            if (!contextPath.startsWith("/")) {
                contextPath = "/" + contextPath;
            }
View Full Code Here

Examples of org.sonar.home.log.Slf4jLog

  private FileCache cache;

  public FileCache provide(Settings settings) {
    if (cache == null) {
      String home = settings.getString("sonar.userHome");
      cache = new FileCacheBuilder().setLog(new Slf4jLog(FileCache.class)).setUserHome(home).build();
    }
    return cache;
  }
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.