From 80dd87a3535b4e4187ba192faa7d1b1f6899f26b Mon Sep 17 00:00:00 2001 From: Shudhansu Shekhar Date: Mon, 4 Aug 2025 14:55:11 +0530 Subject: [PATCH 1/3] Enable to change log level for publish at runtime --- publish-service/src/main/resources/application.properties | 3 +++ 1 file changed, 3 insertions(+) diff --git a/publish-service/src/main/resources/application.properties b/publish-service/src/main/resources/application.properties index 5d8a790b..2b8d0c62 100644 --- a/publish-service/src/main/resources/application.properties +++ b/publish-service/src/main/resources/application.properties @@ -47,4 +47,7 @@ spring.mvc.pathmatch.matching-strategy: ANT_PATH_MATCHER #Maximum number of templates in array passed to generateAndPublish endpoint maxSizeOfInputArray: 250 +management.endpoints.web.exposure.include=loggers +management.endpoint.loggers.enabled=true + From 28cdfbb112e37357083d797072c46e5194c5fff6 Mon Sep 17 00:00:00 2001 From: Shudhansu Shekhar Date: Wed, 6 Aug 2025 16:23:00 +0530 Subject: [PATCH 2/3] Enable to change log level for publish at runtime --- wiki/markdown/logging.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wiki/markdown/logging.md b/wiki/markdown/logging.md index 01b63656..ec8d97f7 100644 --- a/wiki/markdown/logging.md +++ b/wiki/markdown/logging.md @@ -11,4 +11,7 @@ When used without logback.xml log messages will look as below: To configure the logback.xml file use -Dlogging.config=path/logback.xml -To get info about logback configurations see [here](https://logback.qos.ch/manual/configuration.html). \ No newline at end of file +To get info about logback configurations see [here](https://logback.qos.ch/manual/configuration.html). + +To enable log level changes at run time with restart using actuator endpoint. Do the changes using curl command like this: +curl -X POST http://localhost:8080/actuator/loggers/com.ericsson.eiffel.remrem -H "Content-Type: application/json" -d '{"configuredLevel": "DEBUG"}' \ No newline at end of file From 98d6a352bad8ff36f93cc3a9f456f0a313046b74 Mon Sep 17 00:00:00 2001 From: Shudhansu Shekhar Date: Thu, 11 Sep 2025 08:58:54 +0200 Subject: [PATCH 3/3] Enable to change log level for publish at runtime --- CHANGELOG.md | 3 +++ pom.xml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ee159d5..de6ae047 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.1.11 +- Enable to change log level for generate at runtime + ## 2.1.8 - Tests handled properly. diff --git a/pom.xml b/pom.xml index bcb13d3e..fc4bec5e 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ 2.0.15 - 2.1.8 + 2.1.11 2.4.2 eiffel-remrem-publish