Skip to content

feat(config): add LogDir and move diagnostic logs to XDG state#192

Open
jcnnll wants to merge 1 commit intolocalstack:mainfrom
jcnnll:feat/xdg-log-dir
Open

feat(config): add LogDir and move diagnostic logs to XDG state#192
jcnnll wants to merge 1 commit intolocalstack:mainfrom
jcnnll:feat/xdg-log-dir

Conversation

@jcnnll
Copy link
Copy Markdown

@jcnnll jcnnll commented Apr 16, 2026

Problemn Being Solved

Diagnostic logs are currently written to the user's configuration directory (~/.config/lstk). This mixes persistent configuration with diagnostic state, which clutters the config tree and doesn't follow standard OS conventions for logs.

Changes

  • Add LogDir() to resolve to XDG and Windows standard logging paths
  • Decoupled logging from configuration
  • Updated CLAUDE.md to follow the logging standard
  • Added integration test to cover this feature

Tests

  • Added TestLogDir in internal/config/paths_test.go.
  • The test logic is cross-platform, verifying both Windows and Unix branches.
  • Verified with make test.

- Add LogDir() to resolve to XDG and Windows standard logging paths
- Decoupled logging from configuration
- Updated CLAUDE.md to follow the logging standard
- Added integration test to cover this feature
Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@gtsiolis
Copy link
Copy Markdown
Member

Thanks for contributing, @jcnnll! ❤️

Heads-up: The team is sorting out a contribution policy process for this repository, we will follow up here as soon as we have clarity on next steps. Thanks for your patience. ⏳

@jcnnll
Copy link
Copy Markdown
Author

jcnnll commented Apr 17, 2026

Thanks @gtsiolis for responding to this PR, I totally understand the situation and look forward to being able to contribute as an when the policy has been clarified in terms of community contributions.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants