Skip to content

feat: allow hiding code location in console log output - #9

Merged
cuinixam merged 1 commit into
cuinixam:mainfrom
TheRedSwabian:feature/configurable-log-code-location
Sep 15, 2026
Merged

cuinixam merged 1 commit into
cuinixam:mainfrom
TheRedSwabian:feature/configurable-log-code-location

Conversation

@TheRedSwabian

Copy link
Copy Markdown
Contributor

setup_logger now takes show_code_location. It is off by default, which keeps the console output of every existing caller unchanged.

The log file is not affected. A log file is read for debugging, so it keeps the code location in all cases.

The format moved into a new public function create_log_format, so a consumer that adds its own sink can reuse it instead of copying the string.

Unrelated: the .gitignore entry for *.stackdump catches the crash dumps Git Bash drops on Windows. Say the word and I take it out.

Comment thread .gitignore Outdated
setup_logger now takes show_code_location. It is off by default, which
keeps the console output of every existing caller unchanged.

The log file is not affected. A log file is read for debugging, so it
keeps the code location in all cases.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@TheRedSwabian
TheRedSwabian force-pushed the feature/configurable-log-code-location branch from 72ec616 to d83679b Compare September 15, 2026 07:17
@cuinixam
cuinixam merged commit 4f5fa15 into cuinixam:main Sep 15, 2026
7 checks passed
@TheRedSwabian
TheRedSwabian deleted the feature/configurable-log-code-location branch September 15, 2026 09:09

This branch was successfully deployed

1 active deployment
release — d83679b0 Deployed Sep 15, 2026 by TheRedSwabian via release #93
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.

2 participants