Feat/log capturing#113
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a WordPress action hook to let host projects intercept and process this plugin’s info-level log messages, and bumps the plugin version to reflect the new integration point.
Changes:
- Added a new
do_action()hook for intercepting info log messages. - Bumped plugin version from 2.0.0 to 2.1.0.
- Added a v2.1.0 entry to the changelog.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
src/DigiD/Traits/Logger.php |
Emits a new WordPress action when logInfo() is called to allow external log capture. |
plugin.php |
Updates plugin header metadata and GF_DIGID_VERSION constant to 2.1.0. |
CHANGELOG.md |
Adds a v2.1.0 changelog entry describing the new log-capture hook. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -45,6 +45,8 @@ public function logException(Exception $exception, array $context = []): void | |||
|
|
|||
| public function logInfo(string $message, array $context = []): void | |||
| { | |||
Comment on lines
9
to
12
| * Author: Yard | Digital Agency | ||
| * Author URI: https://www.yard.nl | ||
| * Version: 2.0.0 | ||
| * Version: 2.1.0 | ||
| * License: GPL3.0 |
|
|
||
| ## v2.1.0 | ||
|
|
||
| - Feat: Add WP action to capture logs |
mvdhoek1
approved these changes
May 5, 2026
Rovasch
approved these changes
May 5, 2026
3e6e7fb to
c05ec79
Compare
rivanuff
approved these changes
May 7, 2026
ShunLuk
approved these changes
May 7, 2026
mvdhoek1
approved these changes
May 8, 2026
c05ec79 to
0e38919
Compare
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.
This change allows projects to capture and process logging messages from this plugin.