Conversation
fixes cnoe-io#395 Signed-off-by: Nima Kaviani <nkaviani@amazon.com>
|
We can do that even if I never saw a project logging messages like that in many years The main issue here is the fact that we log non required messages as Messages should be logged as by examples what k8s API server reports: Ideally when there is an the stack trace should be logged on several lines |
|
The logging format is fine for a Kubernetes controller, but idpbuilder is supposed to be a CLI tool. So we should remove irrelevant fields like Charles said. I think we should have these for debug messages though. |
|
it could be that we modify this in two ways:
multiline massively helps with readability though, so I suggest we keep it when color outputs are printed. |
|
I'm not really a fun of multi line logging tbh, but I think it's fine if used with the color option because it's meant for humans. We should definitely get rid of controller name, kind, and reconcile id for info level. |
|
Do we want to continue working on this? I believe we have a good logging format via --color option. WDYT @cmoulliard |
|
I think this should be worked on but I don't think Nima has time. I'd say close it and open an issue to track it. |

fixes #395
This breaks the log lines into multi-lines for ease of readability.
It does it for both when the color option is enabled and not. We can ideally modify it to be enabled only when the color option is enabled.
cc @cmoulliard