Skip to content

Conversation

@redpinecube
Copy link
Contributor

closes #41

Description

This PR improves robustness in logger setup by ensuring that createLogger never returns a nil logger even if:

  • The log configuration file is missing or invalid
  • The log directory cannot be created
  • Log files cannot be opened

A fallback logger is returned that writes to stderr at DEBUG level ensuring the application can always safely log messages.

@redpinecube redpinecube requested a review from blobcode October 1, 2025 21:44
@redpinecube redpinecube linked an issue Oct 1, 2025 that may be closed by this pull request
@github-actions github-actions bot added the size/s label Oct 1, 2025
@redpinecube redpinecube changed the title improved log setup failures with a fallback logger to os.Stderr feature : improved log setup failures with a fallback logger to os.Stderr Oct 1, 2025
@blobcode blobcode merged commit c1a2eb6 into main Oct 2, 2025
1 check passed
@blobcode blobcode deleted the feature/handle-log-setup-failures branch October 2, 2025 03:27
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.

[Logging] Handle Log Setup Failures

3 participants