Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug helper function. Add log to file. #466

Closed
wants to merge 3 commits into from

Conversation

EarthlingDavey
Copy link
Contributor

Add Debug::log to allow for debugging when writing to a log file is more suitable than printing to the page.

Add Debug::log to allow for debugging when writing to a log file is more suitable than printing to the page.
@EarthlingDavey EarthlingDavey requested a review from a team as a code owner January 26, 2024 13:29
@EarthlingDavey
Copy link
Contributor Author

Please can we keep this issue as a placeholder.

@wilson1000-MoJ 's advised about not using local file system, and his suggested to check the stout.

PHP error messages are sent to stout (along with a log of network requests), therefore I think it is probably better for WP_DEBUG_LOG to never be set.

I will document how to follow and possibly filter network request from stout, this will be useful for debugging PHP functions locally.

@wilson1000 wilson1000 closed this Mar 25, 2024
@wilson1000 wilson1000 deleted the feat-add-debug-log-to-file branch April 18, 2024 13:15
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.

3 participants