Issue 962:slf4j initializing loggers to null

This commit is contained in:
Adrian Cole 2012-06-06 16:35:48 -07:00
parent 6cfa5877f3
commit a8b5c713a1
1 changed files with 6 additions and 1 deletions

View File

@ -22,12 +22,17 @@ import org.jclouds.logging.BaseLogger;
import org.jclouds.logging.Logger;
/**
* {@link org.apache.slf4j.Logger} implementation of {@link Logger}.
* {@link org.slf4j.LoggerFactory} implementation of {@link Logger}.
*
* @author Adrian Cole
*
*/
public class SLF4JLogger extends BaseLogger {
static {
// force initialization to avoid http://www.slf4j.org/codes.html#substituteLogger messages
org.slf4j.LoggerFactory.getILoggerFactory();
}
private final org.slf4j.Logger logger;
private final String category;