mukesh154 opened a new issue, #23783: URL: https://github.com/apache/pulsar/issues/23783
### Search before asking - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar. ### Motivation The [pulsar-functions/runtime-all/src/main/resources/kubernetes_instance_log4j2.xml](https://github.com/apache/pulsar/blob/master/pulsar-functions/runtime-all/src/main/resources/kubernetes_instance_log4j2.xml) file is responsible for configuring the log settings for function pods running with the Java runtime, specifically when the functions are deployed as Kubernetes StatefulSets. Currently, this file is hardcoded to use the [INFO](https://github.com/apache/pulsar/blob/369c352664a68acbb9bb3584b433498440a41034/pulsar-functions/runtime-all/src/main/resources/kubernetes_instance_log4j2.xml#L27) log level, which limits our ability to adjust logging verbosity for troubleshooting or in-depth monitoring. As it stands, there doesn't appear to be a straightforward or documented method to change the log level dynamically without modifying the `kubernetes_instance_log4j2.xml` file directly. This presents a challenge, especially when we need more granular logs (e.g., DEBUG level) for specific use cases such as debugging issues with sources, sinks, or function executions. ### Solution _No response_ ### Alternatives _No response_ ### Anything else? _No response_ ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
