Add Controller Logging Feature 32/79032/6
authorDaniel Cruz <dc443y@att.com>
Fri, 22 Feb 2019 17:31:17 +0000 (11:31 -0600)
committerDaniel Cruz <dc443y@att.com>
Sat, 2 Mar 2019 00:44:07 +0000 (18:44 -0600)
commit62e4281c0b76ecfde85d094533edd6693c2c1c5b
tree2baa4f571756c90cbbf806afa53d7ff17865935a
parent5ac447f758d9b7a7baaf0e24a0e8621a15b8c5ff
Add Controller Logging Feature

This features provides a mechanism to extend the logback.xml
properties to add controller specific loggers. The controller's
logger will log messages from topics that the controller listens
to in a controller specific network log. The original network
log is preserved and still logs every message from every controller.
Note that the way a logger is associated with a controller is by
having the logger name match the controller's name. Any configuration
file that has "logback-include-" prepended and a ".xml" extension
will be added to the logback.xml and logback-eelf.xml files as
extensions to the base configuration.

Issue-ID: POLICY-1427
Change-Id: Iaeb823421eadb7ee413b6b03ae3dfe862f230612
Signed-off-by: Daniel Cruz <dc443y@att.com>
21 files changed:
feature-controller-logging/pom.xml [new file with mode: 0755]
feature-controller-logging/src/assembly/assemble_zip.xml [new file with mode: 0755]
feature-controller-logging/src/main/feature/install/disable [new file with mode: 0644]
feature-controller-logging/src/main/feature/install/enable [new file with mode: 0644]
feature-controller-logging/src/main/java/org/onap/policy/drools/controller/logging/ControllerLoggingFeature.java [new file with mode: 0755]
feature-controller-logging/src/main/resources/META-INF/services/org.onap.policy.drools.features.DroolsControllerFeatureAPI [new file with mode: 0755]
feature-controller-logging/src/main/resources/META-INF/services/org.onap.policy.drools.features.PolicyControllerFeatureAPI [new file with mode: 0755]
feature-controller-logging/src/main/resources/META-INF/services/org.onap.policy.drools.features.PolicyEngineFeatureAPI [new file with mode: 0755]
feature-controller-logging/src/test/java/org/onap/policy/drools/controller/logging/ControllerLoggingTest.java [new file with mode: 0755]
feature-controller-logging/src/test/resources/kmodule.xml [new file with mode: 0755]
feature-controller-logging/src/test/resources/logback-test.xml [new file with mode: 0755]
feature-controller-logging/src/test/resources/test.drl [new file with mode: 0755]
feature-controller-logging/src/test/resources/test.pom [new file with mode: 0755]
feature-eelf/src/main/feature/config/logback-eelf.xml
packages/install/pom.xml
policy-management/src/main/java/org/onap/policy/drools/controller/internal/MavenDroolsController.java
policy-management/src/main/java/org/onap/policy/drools/features/DroolsControllerFeatureAPI.java
policy-management/src/main/java/org/onap/policy/drools/features/PolicyEngineFeatureAPI.java
policy-management/src/main/java/org/onap/policy/drools/system/PolicyEngine.java
policy-management/src/main/server/config/logback.xml
pom.xml