Conversation
Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Port changes from PR #443 in yiisoft/app
Remove file log target — not needed for Docker or Mar 20, 2026
./yii serve
./yii serve./yii serve
There was a problem hiding this comment.
Pull request overview
This PR removes file-based logging in favor of stream-based logging (stdout/stderr), aligning the app’s default logging behavior with Docker and ./yii serve environments.
Changes:
- Remove the
yiisoft/log-target-fileComposer dependency. - Update DI logger configuration to use only
StreamTarget. - Switch the temporary error handler in
public/index.phpfromFileTarget(runtime log file) toStreamTarget, and document the change in the changelog.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
composer.json |
Drops the file log target dependency now that logging is stream-based. |
config/common/di/logger.php |
Removes FileTarget from the configured logger targets, leaving StreamTarget. |
public/index.php |
Replaces the temporary error-handler log target from file output to stream output. |
CHANGELOG.md |
Notes the behavioral change (no file logging) under the upcoming release section. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #272 +/- ##
=========================================
Coverage 76.70% 76.70%
Complexity 52 52
=========================================
Files 16 16
Lines 176 176
=========================================
Hits 135 135
Misses 41 41 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports yiisoft/app#443.
FileTargetis unnecessary in both Docker and./yii servesetups; stdout/stderr viaStreamTargetis sufficient.Changes
composer.json— dropyiisoft/log-target-filedependencyconfig/common/di/logger.php— removeFileTargetfrom logger targetspublic/index.php— replaceFileTarget(writing toruntime/logs/app-container-building.log) withStreamTargetin the temporary error handler🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.