Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to specify $node in log formatter format string #10921

Open
lukebakken opened this issue Apr 4, 2024 · 0 comments
Open

Add the ability to specify $node in log formatter format string #10921

lukebakken opened this issue Apr 4, 2024 · 0 comments
Assignees

Comments

@lukebakken
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

In VESC-1100, one challenge we are facing is that the customer aggregates log lines from all nodes in their cluster into the log aggregation system, with no way to separate log lines by node. Thus, when providing logs, lines are interleaved between nodes.

Since this seems to be a common scenario in k8s environments, we should allow the ability to specify $node in the format statement for log lines.

Describe the solution you'd like

Allow a format string like this:

log.console.formatter.plaintext.format = $node $time [$level] $pid $msg

Describe alternatives you've considered

You can already specify a constant string in the format string:

log.console.formatter.plaintext.format = rmq0 $time [$level] $pid $msg

However, this means that the configuration file must be templated before the node starts.

Additional context

See VESC-1100

@lukebakken lukebakken self-assigned this Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant