org.picketlink.common.logging.LogFactory Maven / Gradle / Ivy
package org.picketlink.common.logging;
import org.jboss.logging.Logger;
/**
* Factory that creates {@link Log} instances.
*
* Classes should always prefer to use this class to obtain logger instances.
*
* @author Pedro Igor
*/
public class LogFactory {
/**
* Create an {@link Log} instance.
*
* @param logClass Usually an interface that defines logging messages and methods.
* @param category The logger category.
*
* @return
*/
public static T getLog(Class logClass, String category) {
return Logger.getMessageLogger(logClass, category);
}
}