本文整理了Java中org.apache.openejb.util.Logger.configure()
方法的一些代码示例,展示了Logger.configure()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.configure()
方法的具体详情如下:
包路径:org.apache.openejb.util.Logger
类名称:Logger
方法名:configure
暂无
代码示例来源:origin: org.apache.openejb/openejb-core
public static synchronized void configure() {
configure(false);
}
代码示例来源:origin: org.apache.openejb/openejb-core
public static synchronized void configure(final boolean reset) {
if(reset){
logStreamFactory = null;
}
configure(System.getProperties());
}
代码示例来源:origin: org.apache.openejb/openejb-core
/**
* Finds a Logger from the cache and returns it. If not found in cache then builds a Logger and returns it.
*
* @param category - The category of the logger
* @param baseName - The baseName for the ResourceBundle
* @return Logger
*/
public static Logger getInstance(final LogCategory category, final String baseName) {
configure();
try {
return loggerCache.compute(new Object[]{category, baseName});
} catch (final InterruptedException e) {
// Don't return null here. Just create a new Logger and set it up.
// It will not be stored in the cache, but a later lookup for the
// same Logger would probably end up in the cache
final LogStream logStream = logStreamFactory.createLogStream(category);
return new Logger(category, logStream, baseName);
}
}
代码示例来源:origin: org.apache.tomee/openejb-core
public static synchronized void configure() {
configure(SystemInstance.isInitialized() ? SystemInstance.get().getProperties() : JavaSecurityManagers.getSystemProperties());
}
代码示例来源:origin: org.apache.tomee/openejb-core
/**
* Finds a Logger from the cache and returns it. If not found in cache then builds a Logger and returns it.
*
* @param category - The category of the logger
* @param baseName - The baseName for the ResourceBundle
* @return Logger
*/
public static Logger getInstance(final LogCategory category, final String baseName) {
configure();
try {
return loggerCache.compute(new LoggerKey(category, baseName));
} catch (final InterruptedException e) {
// Don't return null here. Just create a new Logger and set it up.
// It will not be stored in the cache, but a later lookup for the
// same Logger would probably end up in the cache
final LogStream logStream = logStreamFactory.createLogStream(category);
return new Logger(category, logStream, baseName);
}
}
代码示例来源:origin: org.apache.openejb/openejb-core
Logger.configure(true);
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
Logger.configure();
Logger logger = Logger.getInstance(LogCategory.OPENEJB_STARTUP, "org.apache.openejb.util.resources");
代码示例来源:origin: org.apache.openejb/openejb-core
Logger.configure();
代码示例来源:origin: org.apache.tomee/openejb-core
Logger.configure();
内容来源于网络,如有侵权,请联系作者删除!