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

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

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

Logger.<init>介绍

[英]Construct a new instance.
[中]构造一个新实例。

代码示例

代码示例来源:origin: jboss.logging/jboss-logging-spi

  1. /**
  2. * Create a Logger instance given the logger name.
  3. *
  4. * @param name the logger name
  5. */
  6. public static Logger getLogger(String name)
  7. {
  8. return new Logger(name);
  9. }

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

  1. /**
  2. * Construct a new instance.
  3. *
  4. * @param name the logger name
  5. * @param resourceBundleName the resource bundle name
  6. * @param loggerPlugin
  7. */
  8. protected AbstractLoggerPluginInstance(final String name, final String resourceBundleName, final LoggerPlugin loggerPlugin) {
  9. this.loggerPlugin = loggerPlugin;
  10. //noinspection ThisEscapedInObjectConstruction
  11. logger = new Logger(name, resourceBundleName, this);
  12. }

代码示例来源:origin: jboss.logging/jboss-logging-spi

  1. /**
  2. * Create a Logger instance given the logger name with the given suffix.
  3. *
  4. * <p>This will include a logger seperator between classname and suffix
  5. *
  6. * @param name The logger name
  7. * @param suffix A suffix to append to the classname.
  8. */
  9. public static Logger getLogger(String name, String suffix)
  10. {
  11. return new Logger(name + "." + suffix);
  12. }

代码示例来源:origin: jboss/jboss-logging-spi

  1. /**
  2. * Create a Logger instance given the logger name.
  3. *
  4. * @param name the logger name
  5. * @return the logger
  6. */
  7. public static Logger getLogger(String name)
  8. {
  9. return new Logger(name);
  10. }

代码示例来源:origin: jboss/jboss-logging-spi

  1. /**
  2. * Create a Logger instance given the logger name with the given suffix.
  3. *
  4. * <p>This will include a logger seperator between classname and suffix
  5. *
  6. * @param name the logger name
  7. * @param suffix a suffix to append to the classname.
  8. * @return the logger
  9. */
  10. public static Logger getLogger(String name, String suffix)
  11. {
  12. return new Logger(name + "." + suffix);
  13. }

代码示例来源:origin: jboss/jboss-logging-spi

  1. /**
  2. * Create a Logger instance given the logger class. This simply
  3. * calls create(clazz.getName()).
  4. *
  5. * @param clazz the Class whose name will be used as the logger name
  6. * @return the logger
  7. */
  8. public static Logger getLogger(Class clazz)
  9. {
  10. return new Logger(clazz.getName());
  11. }

代码示例来源:origin: jboss.logging/jboss-logging-spi

  1. /**
  2. * Create a Logger instance given the logger class with the given suffix.
  3. *
  4. * <p>This will include a logger seperator between classname and suffix
  5. *
  6. * @param clazz The Class whose name will be used as the logger name.
  7. * @param suffix A suffix to append to the classname.
  8. */
  9. public static Logger getLogger(Class clazz, String suffix)
  10. {
  11. return new Logger(clazz.getName() + "." + suffix);
  12. }

代码示例来源:origin: jboss.logging/jboss-logging-spi

  1. /**
  2. * Create a Logger instance given the logger class. This simply
  3. * calls create(clazz.getName()).
  4. *
  5. * @param clazz the Class whose name will be used as the logger name
  6. */
  7. public static Logger getLogger(Class clazz)
  8. {
  9. return new Logger(clazz.getName());
  10. }

代码示例来源:origin: jboss/jboss-logging-spi

  1. /**
  2. * Create a Logger instance given the logger class with the given suffix.
  3. *
  4. * <p>This will include a logger seperator between classname and suffix
  5. *
  6. * @param clazz the Class whose name will be used as the logger name.
  7. * @param suffix a suffix to append to the classname.
  8. * @return the logger
  9. */
  10. public static Logger getLogger(Class clazz, String suffix)
  11. {
  12. return new Logger(clazz.getName() + "." + suffix);
  13. }

相关文章