Details
-
Bug
-
Status: Closed
-
Medium
-
Resolution: Done
-
None
-
None
Description
For A&AI "ajsc-aai" service has its logging provider configuration file location can be set to canonical location by changing "/startup.sh" script.
Currently the Log Provider Config File location as in "/startup.sh" is "/opt/app/aai/bundleconfig/etc/logback.xml". It should be inside a configurable location. This is to support logging provider configuration as described in ONAP application logging guidelines (https://wiki.onap.org/download/attachments/1015849/ONAP%20application%20logging%20guidelines.pdf?api=v2), which state that "[a]n application should provide the ability to change the logging level [...] with no/minimum impact to the running application" and that "[a] configuration file should be used by logging application to determine the actual directory specification where to write the log file", and is not consistent with standardized configuration locations suggested by the ONAP Logging Enhancements project (https://wiki.onap.org/display/DW/Logging+Enhancements+Project+Proposal#LoggingEnhancementsProjectProposal-Defaultproviderconfigurationlocations).
Fix suggested is as below:
1. Create the directory /etc/onap/aai/conf.d/ajsc-aai/
2. Change the System parameter in "/startup.sh" file mentioned above as shown:
-Dlogback.configurationFile= /etc/onap/aai/conf.d/ajsc-aai/logback.xml