From fde5aaee1800d139565e3912992e38eab94103f8 Mon Sep 17 00:00:00 2001 From: Andrew Donald Kennedy Date: Thu, 16 Feb 2012 11:55:14 +0000 Subject: [PATCH] Change from SLF4J to Log4J to make the jclouds-wire-log work --- labs/vcloud-director/pom.xml | 2 +- .../BaseVCloudDirectorClientLiveTest.java | 4 +- .../src/test/resources/log4j.xml | 151 ++++++++++++++++++ 3 files changed, 154 insertions(+), 3 deletions(-) create mode 100644 labs/vcloud-director/src/test/resources/log4j.xml diff --git a/labs/vcloud-director/pom.xml b/labs/vcloud-director/pom.xml index b55770a777..961143b2fc 100644 --- a/labs/vcloud-director/pom.xml +++ b/labs/vcloud-director/pom.xml @@ -72,7 +72,7 @@ org.jclouds.driver - jclouds-slf4j + jclouds-log4j ${project.version} test diff --git a/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/internal/BaseVCloudDirectorClientLiveTest.java b/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/internal/BaseVCloudDirectorClientLiveTest.java index 15f785c189..7c882e136d 100644 --- a/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/internal/BaseVCloudDirectorClientLiveTest.java +++ b/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/internal/BaseVCloudDirectorClientLiveTest.java @@ -22,7 +22,7 @@ import java.net.URI; import java.util.Properties; import org.jclouds.compute.BaseVersionedServiceLiveTest; -import org.jclouds.logging.slf4j.config.SLF4JLoggingModule; +import org.jclouds.logging.log4j.config.Log4JLoggingModule; import org.jclouds.rest.RestContext; import org.jclouds.rest.RestContextFactory; import org.jclouds.sshj.config.SshjSshClientModule; @@ -62,7 +62,7 @@ public class BaseVCloudDirectorClientLiveTest extends BaseVersionedServiceLiveTe setupCredentials(); Properties overrides = setupProperties(); context = new RestContextFactory().createContext(provider, identity, credential, - ImmutableSet. of(new SLF4JLoggingModule(), new SshjSshClientModule()), overrides); + ImmutableSet. of(new Log4JLoggingModule(), new SshjSshClientModule()), overrides); } @AfterGroups(groups = "live") diff --git a/labs/vcloud-director/src/test/resources/log4j.xml b/labs/vcloud-director/src/test/resources/log4j.xml new file mode 100644 index 0000000000..63810d3ca0 --- /dev/null +++ b/labs/vcloud-director/src/test/resources/log4j.xml @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +