wp-graylog archived
Register a Monolog handler to send exception to a Graylog channel.
★ 3stars
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/exolnet/wp-graylog/archive/refs/heads/master.zipFrom the readme
wp-graylog
Adds a mu-plugin that register a Monolog handler to send exception to a Graylog channel.
Requirements
Bedrock
Composer
PHP 8.1 or greater
Wordpress
Installation
Require this package with Composer:
Define the following PHP constants in your config/application.php file:
Then, update your .env to add GRAYLOGHOST environment variable:
Usage
Once installed, errors occurring in your code with a level higher or equals to the GRAYLOGLEVEL will be sent to
the specified Graylog instance. You’ll then be able to centralize all your logs in one place.
Supported Transports
The following transports are supported: UDP, TCP, SSL, HTTP and HTTPS. Select the transport accordingly to
your Graylog set up using the GRAYLOGTRANSPORT configuration. By default, the UDP transport is used.
The default path for HTTP and HTTPS transports is /gelf. This value can be configured using the GRAYLOGPATH
configuration.
Application Name
By default, the blog name is used as the application name, but you can overwrite it with the variable GRAYLOGAPP:
Disable Default Error Handler
By default, if a GRAYLOGHOST is configured, a PHP error handler will be configured to send all errors to Graylo
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| v2.1.0 | Feb 11, 2025 |
| v2.0.1 | Oct 20, 2022 |
| v2.0.0 | Sep 12, 2022 |
| v1.2.0 | Oct 1, 2021 |
| v1.1.1 | Jul 28, 2021 |
| v1.1.0 | Jul 15, 2020 |
| v1.0.2 | May 8, 2020 |
| v1.0.1 | Apr 18, 2020 |
| v1.0.0 | Apr 18, 2020 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.