org.apache.openejb.util.Logger.configure()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(167)

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

Logger.configure介绍

暂无

代码示例

代码示例来源:origin: org.apache.openejb/openejb-core

  1. public static synchronized void configure() {
  2. configure(false);
  3. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. public static synchronized void configure(final boolean reset) {
  2. if(reset){
  3. logStreamFactory = null;
  4. }
  5. configure(System.getProperties());
  6. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. /**
  2. * Finds a Logger from the cache and returns it. If not found in cache then builds a Logger and returns it.
  3. *
  4. * @param category - The category of the logger
  5. * @param baseName - The baseName for the ResourceBundle
  6. * @return Logger
  7. */
  8. public static Logger getInstance(final LogCategory category, final String baseName) {
  9. configure();
  10. try {
  11. return loggerCache.compute(new Object[]{category, baseName});
  12. } catch (final InterruptedException e) {
  13. // Don't return null here. Just create a new Logger and set it up.
  14. // It will not be stored in the cache, but a later lookup for the
  15. // same Logger would probably end up in the cache
  16. final LogStream logStream = logStreamFactory.createLogStream(category);
  17. return new Logger(category, logStream, baseName);
  18. }
  19. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. public static synchronized void configure() {
  2. configure(SystemInstance.isInitialized() ? SystemInstance.get().getProperties() : JavaSecurityManagers.getSystemProperties());
  3. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. /**
  2. * Finds a Logger from the cache and returns it. If not found in cache then builds a Logger and returns it.
  3. *
  4. * @param category - The category of the logger
  5. * @param baseName - The baseName for the ResourceBundle
  6. * @return Logger
  7. */
  8. public static Logger getInstance(final LogCategory category, final String baseName) {
  9. configure();
  10. try {
  11. return loggerCache.compute(new LoggerKey(category, baseName));
  12. } catch (final InterruptedException e) {
  13. // Don't return null here. Just create a new Logger and set it up.
  14. // It will not be stored in the cache, but a later lookup for the
  15. // same Logger would probably end up in the cache
  16. final LogStream logStream = logStreamFactory.createLogStream(category);
  17. return new Logger(category, logStream, baseName);
  18. }
  19. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. Logger.configure(true);

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core

  1. Logger.configure();
  2. Logger logger = Logger.getInstance(LogCategory.OPENEJB_STARTUP, "org.apache.openejb.util.resources");

代码示例来源:origin: org.apache.openejb/openejb-core

  1. Logger.configure();

代码示例来源:origin: org.apache.tomee/openejb-core

  1. Logger.configure();

相关文章