From d91be1b190bf2f8ad15c20b7e9c0eb33b8069e4b Mon Sep 17 00:00:00 2001 From: Tom Pantelis Date: Tue, 6 Mar 2018 23:03:52 -0500 Subject: [PATCH] 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 --- .../config/it/base/AbstractConfigTestBase.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); -- 2.36.6