本文整理汇总了Java中org.eclipse.jetty.util.log.Log.getRootLogger方法的典型用法代码示例。如果您正苦于以下问题:Java Log.getRootLogger方法的具体用法?Java Log.getRootLogger怎么用?Java Log.getRootLogger使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jetty.util.log.Log
的用法示例。
在下文中一共展示了Log.getRootLogger方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SecurityDefinitionServiceImpl
import org.eclipse.jetty.util.log.Log; //导入方法依赖的package包/类
public SecurityDefinitionServiceImpl() throws InterruptedException, ExecutionException {
logger = Log.getRootLogger();
store.open().get();
}
示例2: SecurityDefinitionCreator
import org.eclipse.jetty.util.log.Log; //导入方法依赖的package包/类
public SecurityDefinitionCreator(SecurityDefinitionService service) {
this.service = service;
logger = Log.getRootLogger();
}
示例3: configure
import org.eclipse.jetty.util.log.Log; //导入方法依赖的package包/类
@Override
public void configure(WebSocketServletFactory factory) {
logger = Log.getRootLogger();
factory.getPolicy().setIdleTimeout(120000);
// factory.register(SecurityDefSocket.class);
try {
service = new SecurityDefinitionServiceImpl();
factory.setCreator(new SecurityDefinitionCreator(service));
logger.info("SecurityDefinitionServlet configured");
} catch (InterruptedException | ExecutionException e) {
logger.warn("SecurityDefinitionServlet configuration failed", e);
throw new RuntimeException(e);
}
}
示例4: SecurityDefSocket
import org.eclipse.jetty.util.log.Log; //导入方法依赖的package包/类
public SecurityDefSocket(SecurityDefinitionService service) {
this.service = service;
logger = Log.getRootLogger();
}