Security Logging Fields
[cps.git] / cps-application / src / main / resources / application.yml
index 6717d4e..263ae6b 100644 (file)
@@ -1,7 +1,7 @@
 #  ============LICENSE_START=======================================================\r
 #  Copyright (C) 2021 Pantheon.tech\r
 #  Modifications Copyright (C) 2021 Bell Canada\r
-#  Modifications Copyright (C) 2021 Nordix Foundation\r
+#  Modifications Copyright (C) 2021-2022 Nordix Foundation\r
 #  ================================================================================\r
 #  Licensed under the Apache License, Version 2.0 (the "License");\r
 #  you may not use this file except in compliance with the License.\r
@@ -30,6 +30,8 @@ rest:
 spring:\r
     main:\r
         banner-mode: "off"\r
+    application:\r
+        name: "cps-application"\r
     jpa:\r
         ddl-auto: create\r
         open-in-view: false\r
@@ -39,7 +41,7 @@ spring:
                 dialect: org.hibernate.dialect.PostgreSQLDialect\r
 \r
     datasource:\r
-        url: jdbc:postgresql://${DB_HOST}:5432/cpsdb\r
+        url: jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/cpsdb\r
         username: ${DB_USERNAME}\r
         password: ${DB_PASSWORD}\r
         driverClassName: org.postgresql.Driver\r
@@ -122,11 +124,16 @@ management:
                 enabled: true\r
 \r
 logging:\r
+    format: json\r
     level:\r
         org:\r
             springframework: INFO\r
+            onap:\r
+                cps: INFO\r
 \r
 dmi:\r
     auth:\r
         username: ${DMI_USERNAME}\r
         password: ${DMI_PASSWORD}\r
+    api:\r
+        base-path: dmi\r