Skip to content

Add --config parameter to osgar.logger#1047

Open
m3d wants to merge 1 commit intomasterfrom
feature/logger-config
Open

Add --config parameter to osgar.logger#1047
m3d wants to merge 1 commit intomasterfrom
feature/logger-config

Conversation

@m3d
Copy link
Copy Markdown
Member

@m3d m3d commented Apr 10, 2026

  • Extract configuration JSON from system stream (stream 0)
  • Add lookup_config function to locate the configuration dictionary
  • Pretty-print extracted config using json.dumps
  • Optimize by stopping read after initial system messages

All AI generated, including commit message. This was a side-effect of other development, that osgar.logger could actually provide parameter --config listing original config file. It is readable via stream 0, but without formatting it is quite hard ... so I liked the idea :)

- Extract configuration JSON from system stream (stream 0)
- Add lookup_config function to locate the configuration dictionary
- Pretty-print extracted config using json.dumps
- Optimize by stopping read after initial system messages
@m3d m3d requested a review from tajgr April 10, 2026 20:18
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