org.eclipse.jetty.util.log.Logger.info()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(197)

本文整理了Java中org.eclipse.jetty.util.log.Logger.info()方法的一些代码示例,展示了Logger.info()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()方法的具体详情如下:
包路径:org.eclipse.jetty.util.log.Logger
类名称:Logger
方法名:info

Logger.info介绍

[英]Logs the given message at info level, with Throwable information.
[中]在信息级别记录给定的消息,其中包含可丢弃的信息。

代码示例

代码示例来源:origin: org.eclipse.jetty/jetty-webapp

private void dumpUrl()
{
  Connector[] connectors = getServer().getConnectors();
  for (int i=0;i<connectors.length;i++)
  {
    String displayName = getDisplayName();
    if (displayName == null)
      displayName = "WebApp@"+Arrays.hashCode(connectors);
    LOG.info(displayName + " at http://" + connectors[i].toString() + getContextPath());
  }
}

代码示例来源:origin: org.eclipse.jetty/jetty-webapp

LOG.info("NO JSP Support for {}, did not find {}", context.getContextPath(), servlet_class);
servlet_class = "org.eclipse.jetty.servlet.NoJspServlet";

代码示例来源:origin: org.eclipse.jetty/jetty-util

private void printInfoOnLeases()
{
  leases.forEach(lease-> LOG.info("{} requires {} threads from {}",lease.leasee,lease.getThreads(),pool));
}

代码示例来源:origin: org.eclipse.jetty/jetty-util

protected void processIncludeCipherSuites(String[] supportedCipherSuites, List<String> selected_ciphers)
{
  for (String cipherSuite : _includeCipherSuites)
  {
    Pattern p = Pattern.compile(cipherSuite);
    boolean added = false;
    for (String supportedCipherSuite : supportedCipherSuites)
    {
      Matcher m = p.matcher(supportedCipherSuite);
      if (m.matches())
      {
        added = true;
        selected_ciphers.add(supportedCipherSuite);
      }
    }
    if (!added)
      LOG.info("No Cipher matching '{}' is supported", cipherSuite);
  }
}

代码示例来源:origin: org.eclipse.jetty/jetty-util

private synchronized void hook()
{
  try
  {
    if (!_hooked)
      Runtime.getRuntime().addShutdownHook(this);
    _hooked=true;
  }
  catch(Exception e)
  {
    LOG.ignore(e);
    LOG.info("shutdown already commenced");
  }
}

代码示例来源:origin: org.eclipse.jetty/jetty-util

selected_protocols.add(protocol);
else
  LOG.info("Protocol {} not supported in {}", protocol, Arrays.asList(supportedProtocols));

代码示例来源:origin: org.eclipse.jetty/jetty-util

/**
 * <p>Checks leases against the given number of {@code maxThreads}.</p>
 *
 * @param maxThreads A proposed change to the maximum threads to check.
 * @return true if passes check, false if otherwise (see logs for details)
 * @throws IllegalStateException if insufficient threads are configured.
 */
public boolean check(int maxThreads) throws IllegalStateException
{
  int required = leases.stream()
    .mapToInt(Lease::getThreads)
    .sum();
  int left = maxThreads - required;
  if (left <= 0)
  {
    printInfoOnLeases();
    throw new IllegalStateException(String.format("Insufficient configured threads: required=%d < max=%d for %s", required, maxThreads, pool));
  }
  if (left < warnAt)
  {
    if (warned.compareAndSet(false,true))
    {
      printInfoOnLeases();
      LOG.info("Low configured threads: (max={} - required={})={} < warnAt={} for {}", maxThreads, required, left, warnAt, pool);
    }
    return false;
  }
  return true;
}

代码示例来源:origin: org.eclipse.jetty/jetty-util

LOG.info("Using Non-Native Java {}",pollingWatchServiceClass.getName());
Class<?> c = Class.forName("com.sun.nio.file.SensitivityWatchEventModifier");
Field f = c.getField("HIGH");

代码示例来源:origin: org.eclipse.jetty/jetty-util

LOG.info(String.format("Logging initialized @%dms to %s",Uptime.getUptime(),LOG.getClass().getName()));

代码示例来源:origin: org.eclipse.jetty/jetty-util

@Override
public void run()
{
  List<Sweepable> refs = items.get();
  if (refs == null)
    return;
  for (Sweepable sweepable : refs)
  {
    try
    {
      if (sweepable.sweep())
      {
        refs.remove(sweepable);
        if (LOG.isDebugEnabled())
          LOG.debug("Resource swept {}", sweepable);
      }
    }
    catch (Throwable x)
    {
      LOG.info("Exception while sweeping " + sweepable, x);
    }
  }
  activate();
}

代码示例来源:origin: org.eclipse.jetty/jetty-util

JLOG.info(msg,cause);
JLOG.info(msg);

代码示例来源:origin: i2p/i2p.i2p

Log.getLogger((String)null).info("Opened "+getDatedFilename());

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

@Override
public void log(String msg)
{
  _logger.info(msg);
}

代码示例来源:origin: org.eclipse.jetty/jetty-util

LOG.info("x509={} for {}", x509, this);

代码示例来源:origin: org.eclipse.jetty/jetty-client

private void notifyCommit(Request.CommitListener listener, Request request)
{
  try
  {
    listener.onCommit(request);
  }
  catch (Throwable x)
  {
    LOG.info("Exception while notifying listener " + listener, x);
  }
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

public void bindUserTransaction (WebAppContext context)
throws Exception
{
  try
  {
    Transaction.bindToENC();
  }
  catch (NameNotFoundException e)
  {
    LOG.info("No Transaction manager found - if your webapp requires one, please configure one.");
  }
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

public void processBinding(Node node, App app) throws Exception
  {
    LOG.info("processBinding {} {}",node,app.getContextHandler());
  }
}

代码示例来源:origin: org.eclipse.jetty/jetty-deploy

@Override
  public void processBinding(Node node, App app) throws Exception
  {
    LOG.info("processBinding {} {}",node,app.getContextHandler());
  }
}

代码示例来源:origin: org.eclipse.jetty/jetty-client

private void notifyContent(Request.ContentListener listener, Request request, ByteBuffer content)
{
  try
  {
    listener.onContent(request, content);
  }
  catch (Throwable x)
  {
    LOG.info("Exception while notifying listener " + listener, x);
  }
}

代码示例来源:origin: org.eclipse.jetty/jetty-client

private void notifyFailure(Request.FailureListener listener, Request request, Throwable failure)
  {
    try
    {
      listener.onFailure(request, failure);
    }
    catch (Throwable x)
    {
      LOG.info("Exception while notifying listener " + listener, x);
    }
  }
}

相关文章