flink-on-k8s-operator
flink-on-k8s-operator copied to clipboard
How to set operator Log format and Level
After installing the operator I saw that our Log aggregation solution (datadog) started considering all operator logs as ERROR and its not optimally displaying them. I'd like to explicitly tell the operator its log level, verbosity and format. Looking through the code I saw how to set the verbosity but I can figure out how to set the log level and format ( JSON format is my goal).
I saw that we're using kubebuilder and looking through the code I saw that we mostly use logr for logs but I couldn't find in their docs a way to set logs via arguments to the application. My fear was that we'd need to do some code adaption to support json encoding in the logs.
Anyone has any tips ?
+1 - Also interested in how to achieve this.