Skip to content

(chore) split log streams by severity#1636

Merged
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:improve-logging
Mar 7, 2026
Merged

(chore) split log streams by severity#1636
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:improve-logging

Conversation

@gianlucam76
Copy link
Member

Improve logging by routing Info/Warning to stdout and Error/Fatal to stderr

Currently, klog defaults to sending all logs to stderr. This PR updates the manager's initialization logic to:

  1. Default logtostderr to false programmatically.
  2. Route INFO and WARNING severities (including all V(n) logs) to os.Stdout.
  3. Route ERROR and FATAL severities to os.Stderr.

@gianlucam76 gianlucam76 force-pushed the improve-logging branch 2 times, most recently from 07f7e8c to cd7426d Compare March 7, 2026 11:17
Improve logging by routing Info/Warning to stdout and Error/Fatal to stderr

Currently, klog defaults to sending all logs to stderr.
This PR updates the manager's initialization logic to:

1. Default logtostderr to false programmatically.
2. Route INFO and WARNING severities (including all V(n) logs) to os.Stdout.
3. Route ERROR and FATAL severities to os.Stderr.
@gianlucam76 gianlucam76 merged commit e253418 into projectsveltos:main Mar 7, 2026
15 of 16 checks passed
@gianlucam76 gianlucam76 deleted the improve-logging branch March 7, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant