Skip to content

Remove file target#443

Open
samdark wants to merge 1 commit intomasterfrom
remove-file-target
Open

Remove file target#443
samdark wants to merge 1 commit intomasterfrom
remove-file-target

Conversation

@samdark
Copy link
Member

@samdark samdark commented Feb 21, 2026

File target isn't needed for Docker-based setup as well as for ./yii serve.

@codecov
Copy link

codecov bot commented Feb 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.96%. Comparing base (0233f44) to head (1326a89).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #443   +/-   ##
=========================================
  Coverage     76.96%   76.96%           
  Complexity       29       29           
=========================================
  Files            11       11           
  Lines           178      178           
=========================================
  Hits            137      137           
  Misses           41       41           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes the file-based log target dependency and configuration, relying solely on stream-based logging for Docker and ./yii serve setups.

Changes:

  • Replaced FileTarget usage with StreamTarget in the bootstrap temporary error handler (public/index.php).
  • Removed FileTarget from DI logger target configuration (config/common/di/logger.php).
  • Dropped yiisoft/log-target-file from Composer dependencies (composer.json).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
public/index.php Switches the temporary container-building logger from file output to stream output.
config/common/di/logger.php Removes FileTarget from configured logger targets, leaving StreamTarget.
composer.json Removes the yiisoft/log-target-file package requirement since it’s no longer used.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants