Skip to content

Comments

Decrease LogToStandardErrorThreshold to Trace#2738

Open
reakaleek wants to merge 1 commit intomainfrom
feature/log-to-stderr
Open

Decrease LogToStandardErrorThreshold to Trace#2738
reakaleek wants to merge 1 commit intomainfrom
feature/log-to-stderr

Conversation

@reakaleek
Copy link
Member

@reakaleek reakaleek commented Feb 18, 2026

Summary

  • Redirect all console log output to stderr by setting LogToStandardErrorThreshold to LogLevel.Trace, keeping stdout reserved for program output only.

Motivation

Currently all log messages are written to stdout alongside actual program output. This makes it impossible to reliably capture program output in scripts:

# Before: captures logs + version string
version=$(docs-builder --version)
# $version = "info ::e.d.c.tionFileProvider:: ConfigurationSource.Local: ...\n...0.118.0"

# After: captures only the version string
version=$(docs-builder --version)
# $version = "0.118.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant