org.jboss.logging.Logger.getName()方法的使用及代码示例

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

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

Logger.getName介绍

[英]Return the name of this logger.
[中]返回此记录器的名称。

代码示例

代码示例来源:origin: looly/hutool

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

代码示例来源:origin: looly/hutool

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

代码示例来源:origin: io.netty/netty

@Override
  public String toString() {
    return String.valueOf(logger.getName());
  }
}

代码示例来源:origin: wildfly/wildfly

public String toString() {
    return String.format("%s to \"%s\" -> %s", super.toString(), log.getName(), delegate);
  }
}

代码示例来源:origin: wildfly/wildfly

public String toString() {
    return String.format("%s to \"%s\"", super.toString(), log.getName());
  }
}

代码示例来源:origin: wildfly/wildfly

/**
 * Use the short class name as the default for the service name.
 *
 * @return a description of the mbean
 */
public String getName() {
  final String s = log.getName();
  final int i = s.lastIndexOf(".");
  return i != -1 ? s.substring(i + 1, s.length()) : s;
}

代码示例来源:origin: cn.hutool/hutool-all

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

代码示例来源:origin: cn.hutool/hutool-log

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

代码示例来源:origin: org.jboss.errai.io.netty/netty-common

@Override
  public String toString() {
    return String.valueOf(logger.getName());
  }
}

代码示例来源:origin: harbby/presto-connectors

@Override
  public String toString() {
    return String.valueOf(logger.getName());
  }
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

public String toString() {
    return String.format("%s to \"%s\" -> %s", super.toString(), log.getName(), delegate);
  }
}

代码示例来源:origin: org.jboss.threads/jboss-threads

public String toString() {
    return String.format("%s to \"%s\" -> %s", super.toString(), log.getName(), delegate);
  }
}

代码示例来源:origin: org.jboss.threads/jboss-threads

public String toString() {
    return String.format("%s to \"%s\"", super.toString(), log.getName());
  }
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

public String toString() {
    return String.format("%s to \"%s\"", super.toString(), log.getName());
  }
}

代码示例来源:origin: org.wildfly/wildfly-system-jmx

/**
 * Use the short class name as the default for the service name.
 *
 * @return a description of the mbean
 */
public String getName() {
  final String s = log.getName();
  final int i = s.lastIndexOf(".");
  return i != -1 ? s.substring(i + 1, s.length()) : s;
}

代码示例来源:origin: org.jboss.eap/wildfly-system-jmx

/**
 * Use the short class name as the default for the service name.
 *
 * @return a description of the mbean
 */
public String getName() {
  final String s = log.getName();
  final int i = s.lastIndexOf(".");
  return i != -1 ? s.substring(i + 1, s.length()) : s;
}

代码示例来源:origin: org.jboss.jbossas/jboss-as-cluster

public String getName()
{
 return org.jboss.util.Classes.stripPackageName(log.getName());
}

代码示例来源:origin: org.jboss.kernel/jboss-jmx-mc-int

/**
* Use the short class name as the default for the service name.
* 
* @return a description of the mbean
*/
public String getName()
{
 // TODO: Check if this gets called often, if so cache this or remove if not used
 // use the logger so we can better be used as a delegate instead of sub-class
 return org.jboss.util.Classes.stripPackageName(log.getName());
}

代码示例来源:origin: org.jboss.microcontainer/jboss-jmx-mc-int

/**
* Use the short class name as the default for the service name.
* 
* @return a description of the mbean
*/
public String getName()
{
 // TODO: Check if this gets called often, if so cache this or remove if not used
 // use the logger so we can better be used as a delegate instead of sub-class
 return org.jboss.util.Classes.stripPackageName(log.getName());
}

相关文章