Skip to content

Add -log-stderr flag to log to stderr instead of stdout#59

Open
acscpt wants to merge 1 commit intoscarybeasts:masterfrom
acscpt:pr/log-stderr
Open

Add -log-stderr flag to log to stderr instead of stdout#59
acscpt wants to merge 1 commit intoscarybeasts:masterfrom
acscpt:pr/log-stderr

Conversation

@acscpt
Copy link
Copy Markdown

@acscpt acscpt commented Apr 21, 2026

Hi there,

As promised, here's another PR for a small feature for when running beebjit headless.

Currently log output goes to stdout and mixes with emulator output. Added a -log-stderr flag that works alongside the
standard logging behaviour: when set, logs go to stderr instead of stdout. Makes it easier for a harness to distinguish emulator output from logging. Ignored if -no-log-stdout is also set.

Default behaviour is left unchanged, strictly an opt-in mechanism.

Branch up on my fork at acscpt/beebjit:pr/log-stderr.

Thanks again for beebjit!

Separating diagnostic log output from stdout allows clean capture
of emulated terminal output when running with -terminal -headless,
without relying on line-level filtering at the consumer.

Default behaviour is unchanged. The flag is a no-op when
-no-log-stdout is also set, since that gate disables terminal
logging entirely; this is noted in the help text.
acscpt added a commit to acscpt/beebjit that referenced this pull request Apr 26, 2026
Each bullet in the composed release-notes header now links to its
associated upstream PR (scarybeasts#58, scarybeasts#59, scarybeasts#60) so the credit chain is visible
on the release page. Bullets will come off the list as PRs merge
upstream and the changes ship in upstream releases.
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