You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Understanding the Event Architecture system in WPGraphQL Logging Plugin and how events are published and subscribed to throughout the logging process."
description: "Learn how to install and configure the WPGraphQL Logging Plugin, then customize it using its extensible architecture."
4
+
---
5
+
6
+
@TODO
7
+
8
+
## Introduction
9
+
10
+
This tutorial will guide you through the core features of the WPGraphQL Logging Plugin. You will install and set up the plugin, and then you will see log data appear instantly.
11
+
12
+
Next, we will extend the plugin by:
13
+
14
+
- Subscribing to an event to add more context data
15
+
- Displaying this new data on the admin grid
16
+
- Adding a rule to the list of rules for the rule manager
17
+
- Writing data to a new file handler
18
+
19
+
20
+
By the end of this tutorial, you will be able to navigate and configure the plugin, and you will have the confidence to extend its functionality to suit your specific needs.
21
+
22
+
### Prerequisites
23
+
24
+
In order to complete this tutorial, you should:
25
+
26
+
- Be familiar with WordPress, WPGraphQL & PHP
27
+
- Be familiar with installing a plugin for WordPress
28
+
- Be comfortable to be able to add PHP code to a custom plugin
29
+
30
+
Before you get started you need the following
31
+
32
+
33
+
## Setup
34
+
35
+
36
+
### 1. Install the Plugin
37
+
38
+
### 2. Setup the configuration
39
+
40
+
41
+
## Logging & Viewing Data
42
+
43
+
- Using WPGraphQL IDE
44
+
- Logging a query
45
+
- Show the user
46
+
47
+
48
+
## Extending and adding data to the logs
49
+
50
+
### Event
51
+
52
+
### Admin Grid
53
+
54
+
55
+
### Add Configuration
56
+
57
+
### Rule Manager
58
+
59
+
60
+
### Updating the handler
61
+
62
+
63
+
64
+
## Conclusion
65
+
66
+
67
+
68
+
69
+
70
+
71
+
## Contributing
72
+
73
+
We welcome and appreciate contributions from the community. If you'd like to help improve this documentation, please check out our [Contributing Guide](https://github.com/wpengine/hwptoolkit/blob/main/CONTRIBUTING.md) for more details on how to get started.
0 commit comments