Skip to content

Document default log output and web server setup - #543

Merged
samdark merged 8 commits into
masterfrom
docs/default-log-output
Oct 15, 2026
Merged

samdark merged 8 commits into
masterfrom
docs/default-log-output

Conversation

@samdark

@samdark samdark commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Yii3 application templates use StreamTarget, whose default destination is php://stdout. They do not create application log files; stderr requires explicit configuration. This can surprise users deploying without containers, especially because PHP-FPM discards worker output by default.

Document the default in the logging guide and keep shared deployment guidance in the general web server guide. Link the five server recipes to that guidance and retain the Nginx-specific caveat. Explain Docker log collection and PHP-FPM output capture, and show how to switch to a rotating file target while retaining all eight log levels.

Disable the Vale acronym definition, heading capitalization, and heading acronym rules.

The default comes from the application logger configuration and the StreamTarget constructor.

Copilot AI balanced review requested due to automatic review settings October 15, 2026 09:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The file-target migration needs to explain how to preserve log levels that its defaults silently exclude.

1 open finding
What changed in this PR

Clarifies where Yii3 application logs go and how to capture them in different deployments.

Changes:

  • Documents default stdout logging and Docker log collection.
  • Explains PHP-FPM worker output capture across server recipes.
  • Adds instructions for switching to rotating file logs.
File Description
src/​guide/​runtime/​logging.md Documents defaults and file-target configuration.
src/​cookbook/​configuring-webservers/​nginx.md Adds PHP-FPM logging guidance.
src/​cookbook/​configuring-webservers/​nginx-unit.md Explains application output capture.
src/​cookbook/​configuring-webservers/​lighttpd.md Adds logging options for PHP deployments.
src/​cookbook/​configuring-webservers/​iis.md Distinguishes application logs from access logs.
src/​cookbook/​configuring-webservers/​general.md Explains output destinations and PHP-FPM capture.
src/​cookbook/​configuring-webservers/​apache.md Links logging guidance for different PHP setups.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/guide/runtime/logging.md
@samdark
samdark requested a review from a team October 15, 2026 09:34
@samdark
samdark merged commit 624f1f0 into master Oct 15, 2026
5 of 6 checks passed
@samdark
samdark deleted the docs/default-log-output branch October 15, 2026 10:08
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