Merged V2.1 to HEAD

6694: Removal of explicit Log4J usage


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6750 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-09-11 04:32:56 +00:00
parent a4b4ca69ec
commit 4fd130a5a4
40 changed files with 128 additions and 88 deletions

View File

@@ -61,8 +61,8 @@ import org.alfresco.util.TempFileProvider;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.impl.Log4JLogger;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationEvent;
import org.springframework.util.FileCopyUtils;
@@ -320,13 +320,6 @@ public class ImporterBootstrap extends AbstractLifecycleBean
throw new ImporterException("Store URL must be provided");
}
// initialise log level
// note: only supported with Log4J
if (logEnabled && logger instanceof Log4JLogger)
{
Logger log4JLogger = ((Log4JLogger)logger).getLogger();
log4JLogger.setLevel(Level.DEBUG);
}
UserTransaction userTransaction = transactionService.getUserTransaction();
Authentication authentication = authenticationComponent.getCurrentAuthentication();