当前位置: 首页>>代码示例>>Java>>正文


Java JavaUtilLog类代码示例

本文整理汇总了Java中org.eclipse.jetty.util.log.JavaUtilLog的典型用法代码示例。如果您正苦于以下问题:Java JavaUtilLog类的具体用法?Java JavaUtilLog怎么用?Java JavaUtilLog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


JavaUtilLog类属于org.eclipse.jetty.util.log包,在下文中一共展示了JavaUtilLog类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initializeJettyLogging

import org.eclipse.jetty.util.log.JavaUtilLog; //导入依赖的package包/类
private static void initializeJettyLogging() {
    // Note: Jetty is logging stderr if no logger is explicitly configured.
    try {
        Log.setLog(new JavaUtilLog());
    } catch (Exception e) {
        throw new RuntimeException("Unable to initialize logging framework for Jetty");
    }
}
 
开发者ID:vespa-engine,项目名称:vespa,代码行数:9,代码来源:JettyHttpServer.java

示例2: WebServer

import org.eclipse.jetty.util.log.JavaUtilLog; //导入依赖的package包/类
/**
 * Constructs the web server
 */
public WebServer()
{
   SecurityActions.setSystemProperty("org.eclipse.jetty.util.log.class", JavaUtilLog.class.getName());
   Log.setLog(new JavaUtilLog());

   this.server = null;
   this.host = "localhost";
   this.port = 8080;
   this.mbeanServer = null;
   this.acceptQueueSize = 64;
   this.executorService = null;
   this.handlers = new HandlerList();
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:17,代码来源:WebServer.java

示例3: HttpdForTests

import org.eclipse.jetty.util.log.JavaUtilLog; //导入依赖的package包/类
public HttpdForTests() throws SocketException {
  // Configure the logging for jetty. Which uses a singleton. Ho hum.
  Log.setLog(new JavaUtilLog());
  server = new Server();

  ServerConnector connector = new ServerConnector(server);
  connector.addConnectionFactory(new HttpConnectionFactory());
  // Choose a port randomly upon listening for socket connections.
  connector.setPort(0);
  server.addConnector(connector);

  handlerList = new HandlerList();
  localhost = getLocalhostAddress().getHostAddress();
}
 
开发者ID:facebook,项目名称:buck,代码行数:15,代码来源:HttpdForTests.java

示例4: disableJettyLogging

import org.eclipse.jetty.util.log.JavaUtilLog; //导入依赖的package包/类
private static void disableJettyLogging() {
    if (System.getProperty("enable.jetty.logging") == null) {
        LogManager.getLogManager().reset();
        System.setProperty("org.eclipse.jetty.util.log.class", JavaUtilLog.class.getName());
        Logger.getLogger(JavaUtilLog.class.getName()).setLevel(Level.SEVERE);
    }
}
 
开发者ID:JumpMind,项目名称:metl,代码行数:8,代码来源:StartWebServer.java

示例5: useJavaUtilLogging

import org.eclipse.jetty.util.log.JavaUtilLog; //导入依赖的package包/类
/**
 * Force Jetty to use java.util.logging instead of SLF4J
 */
public static void useJavaUtilLogging()
{
    Log.__logClass = JavaUtilLog.class.getName();
    Log.initialized();
}
 
开发者ID:y-lan,项目名称:presto,代码行数:9,代码来源:JettyLogging.java

示例6: create

import org.eclipse.jetty.util.log.JavaUtilLog; //导入依赖的package包/类
public Server create() {

        Log.setLog(new JavaUtilLog());

        Server server = new Server(createThreadPool());

        server.addBean(createClassList());
        server.setStopAtShutdown(true);
        server.setConnectors(createConnectors(server));

        return server;
    }
 
开发者ID:kumuluz,项目名称:kumuluzee,代码行数:13,代码来源:JettyFactory.java


注:本文中的org.eclipse.jetty.util.log.JavaUtilLog类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。