chetanmeh commented on issue #2990: Change log level dynamically URL: https://github.com/apache/incubator-openwhisk/pull/2990#issuecomment-346037127 Looks useful!. Logback provides support for [TurboFilters] which can be used to enable log for specific thread of execution. We used this in [Apache Sling][2] to enable log for specific logger for specific thread via HTTP Header and make those logs available in Chrome plugin. Something like below ``` curl -s -D - -H "X-OW-EXTRA-LOGGING : true" -H "X-OW-EXTRA-LOGGING-CONFIG : org.apache.kafka.clients;level=trace" \ http://localhost:8000/api/v1/namespaces/_/actions/hello?overwrite=true -o /dev/null ``` This would allow us to say see what all outbound calls are made in specific request. Going further probably the log directive can be added to activation message and picked up by invoker those allowing tracing logs for specific category on invoker side to debug any potential issue All this is just a possible suggestion/idea for future work in this area! For now we can keep it simple and start with current approach in this PR [1]: https://logback.qos.ch/manual/filters.html#TurboFilter [2]: https://sling.apache.org/documentation/bundles/log-tracers.html
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
