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

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

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

Logger.getName介绍

暂无

代码示例

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

/**
 * Legacy interface where a programmatic configuration of the logger level
 * is done as a wholesale approach.
 */
@Override
public void setDebugEnabled(boolean enabled)
{
  if (enabled)
  {
    this._level = LEVEL_DEBUG;
    for (Logger log : Log.getLoggers().values())
    {                
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(LEVEL_DEBUG);
    }
  }
  else
  {
    this._level = this._configuredLevel;
    for (Logger log : Log.getLoggers().values())
    {
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(((StdErrLog)log)._configuredLevel);
    }
  }
}

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

@Override
public String getName() {
  return realLogger.getName();
}

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

/**
 * Legacy interface where a programmatic configuration of the logger level
 * is done as a wholesale approach.
 */
public void setDebugEnabled(boolean enabled)
{
  if (enabled)
  {
    this._level = LEVEL_DEBUG;
    for (Logger log : Log.getLoggers().values())
    {                
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(LEVEL_DEBUG);
    }
  }
  else
  {
    this._level = this._configuredLevel;
    
    for (Logger log : Log.getLoggers().values())
    {
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(((StdErrLog)log)._configuredLevel);
    }
  }
}

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

/**
 * Legacy interface where a programmatic configuration of the logger level
 * is done as a wholesale approach.
 */
public void setDebugEnabled(boolean enabled)
{
  if (enabled)
  {
    this._level = LEVEL_DEBUG;
    for (Logger log : Log.getLoggers().values())
    {                
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(LEVEL_DEBUG);
    }
  }
  else
  {
    this._level = this._configuredLevel;
    
    for (Logger log : Log.getLoggers().values())
    {
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(((StdErrLog)log)._configuredLevel);
    }
  }
}

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

/**
 * Legacy interface where a programmatic configuration of the logger level
 * is done as a wholesale approach.
 */
public void setDebugEnabled(boolean enabled)
{
  if (enabled)
  {
    this._level = LEVEL_DEBUG;
    for (Logger log : Log.getLoggers().values())
    {                
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(LEVEL_DEBUG);
    }
  }
  else
  {
    this._level = this._configuredLevel;
    
    for (Logger log : Log.getLoggers().values())
    {
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(((StdErrLog)log)._configuredLevel);
    }
  }
}

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

/**
 * Legacy interface where a programmatic configuration of the logger level
 * is done as a wholesale approach.
 */
@Override
public void setDebugEnabled(boolean enabled)
{
  if (enabled)
  {
    this._level = LEVEL_DEBUG;
    for (Logger log : Log.getLoggers().values())
    {                
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(LEVEL_DEBUG);
    }
  }
  else
  {
    this._level = this._configuredLevel;
    for (Logger log : Log.getLoggers().values())
    {
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(((StdErrLog)log)._configuredLevel);
    }
  }
}

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

/**
 * Legacy interface where a programmatic configuration of the logger level
 * is done as a wholesale approach.
 */
@Override
public void setDebugEnabled(boolean enabled)
{
  if (enabled)
  {
    this._level = LEVEL_DEBUG;
    for (Logger log : Log.getLoggers().values())
    {                
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(LEVEL_DEBUG);
    }
  }
  else
  {
    this._level = this._configuredLevel;
    for (Logger log : Log.getLoggers().values())
    {
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(((StdErrLog)log)._configuredLevel);
    }
  }
}

代码示例来源:origin: com.jfinal/jetty-server

/**
 * Legacy interface where a programmatic configuration of the logger level
 * is done as a wholesale approach.
 */
@Override
public void setDebugEnabled(boolean enabled)
{
  if (enabled)
  {
    this._level = LEVEL_DEBUG;
    for (Logger log : Log.getLoggers().values())
    {                
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(LEVEL_DEBUG);
    }
  }
  else
  {
    this._level = this._configuredLevel;
    for (Logger log : Log.getLoggers().values())
    {
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(((StdErrLog)log)._configuredLevel);
    }
  }
}

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

/**
 * Legacy interface where a programmatic configuration of the logger level
 * is done as a wholesale approach.
 */
public void setDebugEnabled(boolean enabled)
{
  if (enabled)
  {
    this._level = LEVEL_DEBUG;
    for (Logger log : Log.getLoggers().values())
    {                
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(LEVEL_DEBUG);
    }
  }
  else
  {
    this._level = this._configuredLevel;
    
    for (Logger log : Log.getLoggers().values())
    {
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(((StdErrLog)log)._configuredLevel);
    }
  }
}

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

/**
 * Legacy interface where a programmatic configuration of the logger level
 * is done as a wholesale approach.
 */
@Override
public void setDebugEnabled(boolean enabled)
{
  if (enabled)
  {
    this._level = LEVEL_DEBUG;
    for (Logger log : Log.getLoggers().values())
    {                
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(LEVEL_DEBUG);
    }
  }
  else
  {
    this._level = this._configuredLevel;
    for (Logger log : Log.getLoggers().values())
    {
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(((StdErrLog)log)._configuredLevel);
    }
  }
}

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

/**
 * Legacy interface where a programmatic configuration of the logger level
 * is done as a wholesale approach.
 */
@Override
public void setDebugEnabled(boolean enabled)
{
  if (enabled)
  {
    this._level = LEVEL_DEBUG;
    for (Logger log : Log.getLoggers().values())
    {                
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(LEVEL_DEBUG);
    }
  }
  else
  {
    this._level = this._configuredLevel;
    for (Logger log : Log.getLoggers().values())
    {
      if (log.getName().startsWith(getName()) && log instanceof StdErrLog)
        ((StdErrLog)log).setLevel(((StdErrLog)log)._configuredLevel);
    }
  }
}

相关文章