本文整理了Java中org.jboss.logging.Logger.<init>()
方法的一些代码示例,展示了Logger.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.<init>()
方法的具体详情如下:
包路径:org.jboss.logging.Logger
类名称:Logger
方法名:<init>
[英]Construct a new instance.
[中]构造一个新实例。
代码示例来源:origin: jboss.logging/jboss-logging-spi
/**
* Create a Logger instance given the logger name.
*
* @param name the logger name
*/
public static Logger getLogger(String name)
{
return new Logger(name);
}
代码示例来源:origin: org.jboss.logging/jboss-logging-spi
/**
* Construct a new instance.
*
* @param name the logger name
* @param resourceBundleName the resource bundle name
* @param loggerPlugin
*/
protected AbstractLoggerPluginInstance(final String name, final String resourceBundleName, final LoggerPlugin loggerPlugin) {
this.loggerPlugin = loggerPlugin;
//noinspection ThisEscapedInObjectConstruction
logger = new Logger(name, resourceBundleName, this);
}
代码示例来源:origin: jboss.logging/jboss-logging-spi
/**
* Create a Logger instance given the logger name with the given suffix.
*
* <p>This will include a logger seperator between classname and suffix
*
* @param name The logger name
* @param suffix A suffix to append to the classname.
*/
public static Logger getLogger(String name, String suffix)
{
return new Logger(name + "." + suffix);
}
代码示例来源:origin: jboss/jboss-logging-spi
/**
* Create a Logger instance given the logger name.
*
* @param name the logger name
* @return the logger
*/
public static Logger getLogger(String name)
{
return new Logger(name);
}
代码示例来源:origin: jboss/jboss-logging-spi
/**
* Create a Logger instance given the logger name with the given suffix.
*
* <p>This will include a logger seperator between classname and suffix
*
* @param name the logger name
* @param suffix a suffix to append to the classname.
* @return the logger
*/
public static Logger getLogger(String name, String suffix)
{
return new Logger(name + "." + suffix);
}
代码示例来源:origin: jboss/jboss-logging-spi
/**
* Create a Logger instance given the logger class. This simply
* calls create(clazz.getName()).
*
* @param clazz the Class whose name will be used as the logger name
* @return the logger
*/
public static Logger getLogger(Class clazz)
{
return new Logger(clazz.getName());
}
代码示例来源:origin: jboss.logging/jboss-logging-spi
/**
* Create a Logger instance given the logger class with the given suffix.
*
* <p>This will include a logger seperator between classname and suffix
*
* @param clazz The Class whose name will be used as the logger name.
* @param suffix A suffix to append to the classname.
*/
public static Logger getLogger(Class clazz, String suffix)
{
return new Logger(clazz.getName() + "." + suffix);
}
代码示例来源:origin: jboss.logging/jboss-logging-spi
/**
* Create a Logger instance given the logger class. This simply
* calls create(clazz.getName()).
*
* @param clazz the Class whose name will be used as the logger name
*/
public static Logger getLogger(Class clazz)
{
return new Logger(clazz.getName());
}
代码示例来源:origin: jboss/jboss-logging-spi
/**
* Create a Logger instance given the logger class with the given suffix.
*
* <p>This will include a logger seperator between classname and suffix
*
* @param clazz the Class whose name will be used as the logger name.
* @param suffix a suffix to append to the classname.
* @return the logger
*/
public static Logger getLogger(Class clazz, String suffix)
{
return new Logger(clazz.getName() + "." + suffix);
}
内容来源于网络,如有侵权,请联系作者删除!