Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vdlp/oc-amqplogging-plugin
Extend October CMS logging with an AMQP driver
https://github.com/vdlp/oc-amqplogging-plugin
amqp amqp-driver laravel logging octobercms octobercms-plugin rabbitmq
Last synced: about 4 hours ago
JSON representation
Extend October CMS logging with an AMQP driver
- Host: GitHub
- URL: https://github.com/vdlp/oc-amqplogging-plugin
- Owner: vdlp
- License: gpl-2.0
- Created: 2020-07-15T11:54:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T13:47:18.000Z (8 months ago)
- Last Synced: 2024-11-13T03:51:36.555Z (2 days ago)
- Topics: amqp, amqp-driver, laravel, logging, octobercms, octobercms-plugin, rabbitmq
- Language: PHP
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Vdlp.AmqpLogging
Extends October CMS logging with an AMQP driver.
- Support for environment specific configuration (using the `.env` file).
- Fallback logging when AMQP connection failed.## Requirements
- PHP ^8.0
- October CMS `^3.0` (Laravel `^9.0` or `^10.0`)## Installation
```
composer require vdlp/oc-amqplogging-plugin
```## Usage
Publish the configuration file.
`php artisan vendor:publish --tag=vdlp-amqplogging-config`
Configure your connection to the AMQP server.
```
VDLP_AMQPLOGGING_HOST = ""
VDLP_AMQPLOGGING_PORT = ""
VDLP_AMQPLOGGING_LOGIN = ""
VDLP_AMQPLOGGING_PASSWORD = ""
VDLP_AMQPLOGGING_VHOST = ""
VDLP_AMQPLOGGING_EXCHANGE = ""
VDLP_AMQPLOGGING_CHANNEL = ""
```Use the `Vdlp\AmqpLogging\Classes\AmqpLogger` in the `logging.php` configuration:
```
'amqp' => [
'driver' => 'custom',
'via' => \Vdlp\AmqpLogging\Classes\AmqpLogger::class,
],
```