From: Tom Pantelis Date: Wed, 7 Mar 2018 04:03:52 +0000 (-0500) Subject: Reinstate the AbstractConfigTestBase.logConfiguration method X-Git-Tag: release/fluorine~167 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=d91be1b190bf2f8ad15c20b7e9c0eb33b8069e4b Reinstate the AbstractConfigTestBase.logConfiguration method https://git.opendaylight.org/gerrit/#/c/68992/ removed this method but there are downstream users so to avoid API breakage the method was added back but as deprecated. Change-Id: I8e8eb452724451792c9ac6a140047d063b5d2441 Signed-off-by: Tom Pantelis --- diff --git a/opendaylight/config/config-it-base/src/main/java/org/opendaylight/controller/config/it/base/AbstractConfigTestBase.java b/opendaylight/config/config-it-base/src/main/java/org/opendaylight/controller/config/it/base/AbstractConfigTestBase.java index 549aef712d..ee2cf1db7f 100644 --- a/opendaylight/config/config-it-base/src/main/java/org/opendaylight/controller/config/it/base/AbstractConfigTestBase.java +++ b/opendaylight/config/config-it-base/src/main/java/org/opendaylight/controller/config/it/base/AbstractConfigTestBase.java @@ -129,6 +129,18 @@ public abstract class AbstractConfigTestBase { return null; } + /** + * Returns a Log4J logging configuration property name for the given class's package name of the form + * "log4j.logger.package_name". + * + * @deprecated The karaf logging provider is now Log4J2 so logging configurations must conform to the Log4J2 style. + * This method is kept for compilation backwards compatibility but will be removed in a future release. + */ + @Deprecated + public String logConfiguration(final Class klazz) { + return "log4j.logger." + klazz.getPackage().getName(); + } + public String getKarafDistro() { String groupId = System.getProperty(KARAF_DISTRO_GROUPID_PROP, KARAF_DISTRO_GROUPID); String artifactId = System.getProperty(KARAF_DISTRO_ARTIFACTID_PROP, KARAF_DISTRO_ARTIFACTID);