public static CoreMessageLogger messageLogger(String loggerName) { return Logger.getMessageLogger( CoreMessageLogger.class, loggerName ); }
public static EnversMessageLogger messageLogger(String loggerName) { return Logger.getMessageLogger( EnversMessageLogger .class, loggerName ); }
public static EntityManagerMessageLogger messageLogger(String loggerName) { return Logger.getMessageLogger( EntityManagerMessageLogger .class, loggerName ); }
/** * 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()); }
/** * Logs the Hibernate version (using {@link #getVersionString()}) to the logging system. */ public static void logVersion() { Logger.getMessageLogger( CoreMessageLogger.class, Version.class.getName() ).version( getVersionString() ); }
private static final CoreMessageLogger LOG = Logger.getMessageLogger( CoreMessageLogger.class, StatefulPersistenceContext.class.getName()
private static final CoreMessageLogger LOG = Logger.getMessageLogger(CoreMessageLogger.class, Ejb3Column.class.getName());
/** * 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()); }
/** * 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()); }
/** * 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()); }
/** * 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()); }
/** * 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()); }
public static Log make() { Throwable t = new Throwable(); StackTraceElement directCaller = t.getStackTrace()[1]; return Logger.getMessageLogger( Log.class, directCaller.getClassName() ); }
public static Log make() { Throwable t = new Throwable(); StackTraceElement directCaller = t.getStackTrace()[1]; return Logger.getMessageLogger( Log.class, directCaller.getClassName() ); }
public static <T> T make(Class<T> logClass, Lookup creationContext) { final String className = creationContext.lookupClass().getName(); return Logger.getMessageLogger( logClass, className ); } }
public static <T> T make(Class<T> logClass, Lookup creationContext) { final String className = creationContext.lookupClass().getName(); return Logger.getMessageLogger( logClass, className ); } }
public static <T> T make(Class<T> logClass, Lookup creationContext) { final String className = creationContext.lookupClass().getName(); return Logger.getMessageLogger( logClass, className ); } }
public static <T> T make(Class<T> logClass, Lookup creationContext) { final String className = creationContext.lookupClass().getName(); return Logger.getMessageLogger( logClass, className ); } }
public static <T> T make(Class<T> logClass, Lookup creationContext) { final String className = creationContext.lookupClass().getName(); return Logger.getMessageLogger( logClass, className ); } }
/** * Logs the Hibernate version (using {@link #getVersionString()}) to the logging system. */ public static void logVersion() { Logger.getMessageLogger( CoreMessageLogger.class, Version.class.getName() ).version( getVersionString() ); }