[ 
https://issues.apache.org/jira/browse/FLINK-26454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17503272#comment-17503272
 ] 

Nicholas Jiang commented on FLINK-26454:
----------------------------------------

MDC +1. MDC solution looks more uniform and namespace + name is no need 
everywhere. [~gyfora], does anyone start the discussion thread for the operator 
logging improvement?

> Improve operator logging
> ------------------------
>
>                 Key: FLINK-26454
>                 URL: https://issues.apache.org/jira/browse/FLINK-26454
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Kubernetes Operator
>            Reporter: Gyula Fora
>            Priority: Major
>
> At the moment the way information is logged throughout the operator is very 
> inconsistent. Some parts log the name of the deployment, some the name + 
> namespace, some neither of these.
> We should try to clean this up and unify it across the operator.
> I see basically 2 possible ways:
>  1. Add a log formatter utility to always attach name + namespace information 
> to each logged line
>  2. Remove namespace + name from everywhere and extract this as part of the 
> logger setting from MDC information the operator sdk already provides 
> ([https://javaoperatorsdk.io/docs/features)]
> We should discuss this on the mailing list as part of this work



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to