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 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 + 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