本文整理汇总了Java中org.eclipse.persistence.logging.SessionLog.loggerCatagories方法的典型用法代码示例。如果您正苦于以下问题:Java SessionLog.loggerCatagories方法的具体用法?Java SessionLog.loggerCatagories怎么用?Java SessionLog.loggerCatagories使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.persistence.logging.SessionLog
的用法示例。
在下文中一共展示了SessionLog.loggerCatagories方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Slf4jSessionLogger
import org.eclipse.persistence.logging.SessionLog; //导入方法依赖的package包/类
public Slf4jSessionLogger()
{
super();
// Initialize loggers eagerly
categoryLoggers = new HashMap<>();
for( String category : SessionLog.loggerCatagories )
{
categoryLoggers.put( category, LoggerFactory.getLogger( ECLIPSELINK_NAMESPACE + "." + category ) );
}
categoryLoggers.put( DEFAULT_CATEGORY, LoggerFactory.getLogger( DEFAULT_ECLIPSELINK_NAMESPACE ) );
// Mapping between EclipseLink and SLF4J log levels.
mapLevels = new HashMap<>();
mapLevels.put( SessionLog.ALL, LogLevel.TRACE );
mapLevels.put( SessionLog.FINEST, LogLevel.TRACE );
mapLevels.put( SessionLog.FINER, LogLevel.TRACE );
mapLevels.put( SessionLog.FINE, LogLevel.DEBUG );
mapLevels.put( SessionLog.CONFIG, LogLevel.INFO );
mapLevels.put( SessionLog.INFO, LogLevel.INFO );
mapLevels.put( SessionLog.WARNING, LogLevel.WARN );
mapLevels.put( SessionLog.SEVERE, LogLevel.ERROR );
}
示例2: createCategoryLoggers
import org.eclipse.persistence.logging.SessionLog; //导入方法依赖的package包/类
/**
* Initialize loggers eagerly
*/
private void createCategoryLoggers() {
for (String category : SessionLog.loggerCatagories) {
addLogger(category, ECLIPSELINK_NAMESPACE + "." + category);
}
// Logger default para cuando no hay categoría.
addLogger(DEFAULT_CATEGORY, DEFAULT_ECLIPSELINK_NAMESPACE);
}
示例3: createCategoryLoggers
import org.eclipse.persistence.logging.SessionLog; //导入方法依赖的package包/类
/**
* Initialize loggers eagerly
*/
private void createCategoryLoggers() {
for (String category : SessionLog.loggerCatagories) {
addLogger(category, ECLIPSELINK_NAMESPACE + "." + category);
}
// Logger default para cuando no hay categorÃa.
addLogger(DEFAULT_CATEGORY, DEFAULT_ECLIPSELINK_NAMESPACE);
}