All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.annotations.common.util.impl.LoggerFactory Maven / Gradle / Ivy

/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.annotations.common.util.impl;

import org.jboss.logging.Logger;

/**
 * A factory class for class loggers. Allows a creation of loggers after the DRY principle.
 *
 * @author Hardy Ferentschik
 * @author Emmanuel Bernard 
 */
public class LoggerFactory {
	public static Log make(String category) {
		return Logger.getMessageLogger( Log.class, category );
	}

	public static Logger logger(Class caller) {
		return Logger.getLogger( caller.getName() );
	}
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy