本文整理匯總了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();
}