From 7082b9a70d9c4b57088401e254b0ee71c950a5cb Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Mon, 21 May 2012 11:55:01 -0600 Subject: [PATCH] cloudstack logging working --- apis/cloudstack/pom.xml | 8 +- ...oudStackComputeServiceAdapterLiveTest.java | 4 +- apis/cloudstack/src/test/resources/log4j.xml | 155 ------------------ 3 files changed, 9 insertions(+), 158 deletions(-) delete mode 100644 apis/cloudstack/src/test/resources/log4j.xml diff --git a/apis/cloudstack/pom.xml b/apis/cloudstack/pom.xml index da995d62d4..5bab0db9ee 100644 --- a/apis/cloudstack/pom.xml +++ b/apis/cloudstack/pom.xml @@ -94,10 +94,16 @@ org.jclouds.driver - jclouds-log4j + jclouds-slf4j ${project.version} test + + ch.qos.logback + logback-classic + 1.0.0 + test + diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/CloudStackComputeServiceAdapterLiveTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/CloudStackComputeServiceAdapterLiveTest.java index 10fcc168a6..6a3ea0a3a0 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/CloudStackComputeServiceAdapterLiveTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/CloudStackComputeServiceAdapterLiveTest.java @@ -59,7 +59,7 @@ import org.jclouds.compute.domain.Template; import org.jclouds.compute.functions.DefaultCredentialsFromImageOrOverridingCredentials; import org.jclouds.compute.strategy.PrioritizeCredentialsFromTemplate; import org.jclouds.domain.Credentials; -import org.jclouds.logging.log4j.config.Log4JLoggingModule; +import org.jclouds.logging.slf4j.config.SLF4JLoggingModule; import org.jclouds.predicates.RetryablePredicate; import org.jclouds.rest.annotations.Identity; import org.testng.annotations.AfterGroups; @@ -135,7 +135,7 @@ public class CloudStackComputeServiceAdapterLiveTest extends BaseCloudStackClien return CacheBuilder.newBuilder().build(getIPForwardingRule); } }; - adapter = Guice.createInjector(module, new Log4JLoggingModule()).getInstance( + adapter = Guice.createInjector(module, new SLF4JLoggingModule()).getInstance( CloudStackComputeServiceAdapter.class); keyPairName = prefix + "-adapter-test-keypair"; diff --git a/apis/cloudstack/src/test/resources/log4j.xml b/apis/cloudstack/src/test/resources/log4j.xml deleted file mode 100644 index 9d2dd7db2f..0000000000 --- a/apis/cloudstack/src/test/resources/log4j.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -