Skip to content

Conversation

@sabist
Copy link

@sabist sabist commented Dec 14, 2025

Related Issues

Fixes log file resolution when using stack logging driver (e.g., LOG_CHANNEL=stack with LOG_STACK=daily)

Key Changes

  • Added resolveChannelWithPath() method to traverse stack driver channels and find the actual log file path
  • Handles nested stack configurations with recursion depth limit
  • Properly resolves daily driver paths from within stack channels

Context

When LOG_CHANNEL=stack and LOG_STACK=daily, the ReadsLogs trait was falling back to storage_path('logs/laravel.log') instead of resolving the daily log file (laravel-YYYY-MM-DD.log) from the underlying channel configuration.

Testing

All 9 ReadLogEntriesTest tests pass, including existing tests for stack → daily resolution.

@sabist sabist force-pushed the fix/stack-logging-driver-resolution branch from e4e595a to be6dff5 Compare December 14, 2025 02:52
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