vdlp / oc-amqplogging-plugin
Extend October CMS logging with an AMQP driver
Installs: 6 463
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 8
Forks: 1
Open Issues: 0
Type:october-plugin
Requires
- php: ^8.0
- ext-amqp: *
- composer/installers: ^1.0 || ^2.0
- monolog/monolog: ^2.0 || ^3.0
- october/rain: ^3.0
- php-amqplib/php-amqplib: ^3.0
This package is auto-updated.
Last update: 2024-12-14 15:50:06 UTC
README
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,
],