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

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

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

Logger.getLogger介绍

暂无

代码示例

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

/**
 * Obtain a named Logger or the default Logger if null is passed.
 * @param name the Logger name
 * @return the Logger with the given name
 */
public static Logger getLogger(String name)
{
  initialized();
  if(name==null)
    return LOG;
  Logger logger = __loggers.get(name);
  if(logger==null)
    logger = LOG.getLogger(name);
  return logger;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.http.jetty

@Override
public org.eclipse.jetty.util.log.Logger getLogger(String name) {
  if ((name == null && this.localName == null) || (name != null && name.equals(this.localName)))
    return this;
  return new EquinoxStdErrLog(name, realLogger.getLogger(name));
}

代码示例来源:origin: jenkinsci/winstone

/**
 * Obtain a named Logger or the default Logger if null is passed.
 * @param name the Logger name
 * @return the Logger with the given name
 */
public static Logger getLogger(String name)
{
  initialized();
  if(name==null)
    return LOG;
  Logger logger = __loggers.get(name);
  if(logger==null)
    logger = LOG.getLogger(name);
  return logger;
}

代码示例来源:origin: Nextdoor/bender

/**
 * Obtain a named Logger or the default Logger if null is passed.
 * @param name the Logger name
 * @return the Logger with the given name
 */
public static Logger getLogger(String name)
{
  initialized();
  if(name==null)
    return LOG;
  Logger logger = __loggers.get(name);
  if(logger==null)
    logger = LOG.getLogger(name);
  return logger;
}

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

/**
 * Obtain a named Logger or the default Logger if null is passed.
 * @param name the Logger name
 * @return the Logger with the given name
 */
public static Logger getLogger(String name)
{
  if (!initialized())
    return null;
  if(name==null)
    return LOG;
  Logger logger = __loggers.get(name);
  if(logger==null)
    logger = LOG.getLogger(name);
  return logger;
}

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

/**
 * Obtain a named Logger or the default Logger if null is passed.
 * @param name the Logger name
 * @return the Logger with the given name
 */
public static Logger getLogger(String name)
{
  if (!initialized())
    return null;
  if(name==null)
    return LOG;
  Logger logger = __loggers.get(name);
  if(logger==null)
    logger = LOG.getLogger(name);
  return logger;
}

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

/**
 * Obtain a named Logger or the default Logger if null is passed.
 * @param name the Logger name
 * @return the Logger with the given name
 */
public static Logger getLogger(String name)
{
  if (!initialized())
    return null;
  if(name==null)
    return LOG;
  Logger logger = __loggers.get(name);
  if(logger==null)
    logger = LOG.getLogger(name);
  return logger;
}

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

/**
 * Obtain a named Logger or the default Logger if null is passed.
 * @param name the Logger name
 * @return the Logger with the given name
 */
public static Logger getLogger(String name)
{
  if (!initialized())
    return null;
  if(name==null)
    return LOG;
  Logger logger = __loggers.get(name);
  if(logger==null)
    logger = LOG.getLogger(name);
  return logger;
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Obtain a named Logger or the default Logger if null is passed.
 * @param name the Logger name
 * @return the Logger with the given name
 */
public static Logger getLogger(String name)
{
  if (!initialized())
  {
    IllegalStateException e = new IllegalStateException();
    e.printStackTrace();
    throw e;
  }
  if(name==null)
    return LOG;
  Logger logger = __loggers.get(name);
  if(logger==null)
    logger = LOG.getLogger(name);
  return logger;
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Obtain a named Logger or the default Logger if null is passed.
 * @param name the Logger name
 * @return the Logger with the given name
 */
public static Logger getLogger(String name)
{
  if (!initialized())
  {
    IllegalStateException e = new IllegalStateException();
    e.printStackTrace();
    throw e;
  }
  if(name==null)
    return LOG;
  Logger logger = __loggers.get(name);
  if(logger==null)
    logger = LOG.getLogger(name);
  return logger;
}

相关文章