本文整理了Java中org.jboss.logging.Logger.getMessageLogger()
方法的一些代码示例,展示了Logger.getMessageLogger()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.getMessageLogger()
方法的具体详情如下:
包路径:org.jboss.logging.Logger
类名称:Logger
方法名:getMessageLogger
[英]Get a typed logger which implements the given interface. The current default locale will be used for the new logger.
[中]获取实现给定接口的类型化记录器。新记录器将使用当前默认区域设置。
代码示例来源:origin: hibernate/hibernate-orm
public static CoreMessageLogger messageLogger(String loggerName) {
return Logger.getMessageLogger( CoreMessageLogger.class, loggerName );
}
代码示例来源:origin: hibernate/hibernate-orm
public static EnversMessageLogger messageLogger(String loggerName) {
return Logger.getMessageLogger( EnversMessageLogger .class, loggerName );
}
代码示例来源:origin: hibernate/hibernate-orm
public static EntityManagerMessageLogger messageLogger(String loggerName) {
return Logger.getMessageLogger( EntityManagerMessageLogger .class, loggerName );
}
代码示例来源:origin: wildfly/wildfly
/**
* Get a typed logger which implements the given interface. The current default locale will be used for the new logger.
*
* @param type the interface to implement
* @param category the logger category
* @param <T> the logger type
* @return the typed logger
*/
public static <T> T getMessageLogger(Class<T> type, String category) {
return getMessageLogger(type, category, LoggingLocale.getLocale());
}
代码示例来源:origin: hibernate/hibernate-orm
/**
* Logs the Hibernate version (using {@link #getVersionString()}) to the logging system.
*/
public static void logVersion() {
Logger.getMessageLogger( CoreMessageLogger.class, Version.class.getName() ).version( getVersionString() );
}
代码示例来源:origin: hibernate/hibernate-orm
private static final CoreMessageLogger LOG = Logger.getMessageLogger(
CoreMessageLogger.class,
StatefulPersistenceContext.class.getName()
代码示例来源:origin: hibernate/hibernate-orm
private static final CoreMessageLogger LOG = Logger.getMessageLogger(CoreMessageLogger.class, Ejb3Column.class.getName());
代码示例来源:origin: org.jboss.seam.solder/seam-solder
/**
* Get a typed logger which implements the given interface. The current default locale will be used for the new logger.
*
* @param type the interface to implement
* @param category the logger category
* @param <T> the logger type
* @return the typed logger
*/
public static <T> T getMessageLogger(Class<T> type, String category) {
return getMessageLogger(type, category, Locale.getDefault());
}
代码示例来源:origin: org.jboss.weld.se/weld-se
/**
* Get a typed logger which implements the given interface. The current default locale will be used for the new logger.
*
* @param type the interface to implement
* @param category the logger category
* @param <T> the logger type
* @return the typed logger
*/
public static <T> T getMessageLogger(Class<T> type, String category) {
return getMessageLogger(type, category, Locale.getDefault());
}
代码示例来源:origin: weld/core
/**
* Get a typed logger which implements the given interface. The current default locale will be used for the new logger.
*
* @param type the interface to implement
* @param category the logger category
* @param <T> the logger type
* @return the typed logger
*/
public static <T> T getMessageLogger(Class<T> type, String category) {
return getMessageLogger(type, category, Locale.getDefault());
}
代码示例来源:origin: weld/core
/**
* Get a typed logger which implements the given interface. The current default locale will be used for the new logger.
*
* @param type the interface to implement
* @param category the logger category
* @param <T> the logger type
* @return the typed logger
*/
public static <T> T getMessageLogger(Class<T> type, String category) {
return getMessageLogger(type, category, Locale.getDefault());
}
代码示例来源:origin: org.jboss.logging/com.springsource.org.jboss.logging
/**
* Get a typed logger which implements the given interface. The current default locale will be used for the new logger.
*
* @param type the interface to implement
* @param category the logger category
* @param <T> the logger type
* @return the typed logger
*/
public static <T> T getMessageLogger(Class<T> type, String category) {
return getMessageLogger(type, category, Locale.getDefault());
}
代码示例来源:origin: org.infinispan/infinispan-embedded-query
public static Log make() {
Throwable t = new Throwable();
StackTraceElement directCaller = t.getStackTrace()[1];
return Logger.getMessageLogger( Log.class, directCaller.getClassName() );
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator
public static Log make() {
Throwable t = new Throwable();
StackTraceElement directCaller = t.getStackTrace()[1];
return Logger.getMessageLogger( Log.class, directCaller.getClassName() );
}
代码示例来源:origin: hibernate/hibernate-ogm
public static <T> T make(Class<T> logClass, Lookup creationContext) {
final String className = creationContext.lookupClass().getName();
return Logger.getMessageLogger( logClass, className );
}
}
代码示例来源:origin: org.hibernate.ogm/hibernate-ogm-infinispan-embedded
public static <T> T make(Class<T> logClass, Lookup creationContext) {
final String className = creationContext.lookupClass().getName();
return Logger.getMessageLogger( logClass, className );
}
}
代码示例来源:origin: hibernate/hibernate-ogm
public static <T> T make(Class<T> logClass, Lookup creationContext) {
final String className = creationContext.lookupClass().getName();
return Logger.getMessageLogger( logClass, className );
}
}
代码示例来源:origin: hibernate/hibernate-ogm
public static <T> T make(Class<T> logClass, Lookup creationContext) {
final String className = creationContext.lookupClass().getName();
return Logger.getMessageLogger( logClass, className );
}
}
代码示例来源:origin: org.hibernate.ogm/hibernate-ogm-mongodb
public static <T> T make(Class<T> logClass, Lookup creationContext) {
final String className = creationContext.lookupClass().getName();
return Logger.getMessageLogger( logClass, className );
}
}
代码示例来源:origin: org.hibernate.orm/hibernate-core
/**
* Logs the Hibernate version (using {@link #getVersionString()}) to the logging system.
*/
public static void logVersion() {
Logger.getMessageLogger( CoreMessageLogger.class, Version.class.getName() ).version( getVersionString() );
}
内容来源于网络,如有侵权,请联系作者删除!