Download the PHP package cre8-it/log-relay without Composer
On this page you can find all versions of the php package cre8-it/log-relay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cre8-it/log-relay
More information about cre8-it/log-relay
Files in cre8-it/log-relay
Package log-relay
Short Description Monolog log channel that posts structured log data over HTTP
License MIT
Homepage https://github.com/cre8-it/log-relay
Informations about the package log-relay
Log Relay for Laravel
Minimal Monolog log channel that posts structured log data over HTTP.
Installation
You can install the package via Composer:
Register the channel in config/logging.php:
Then set the connection values in your .env file:
app is sent with each record so the ingress can tell sources apart. If you omit it, the handler falls back to config('app.name').
Usage
Write logs as usual. Messages that reach the http channel are posted as JSON:
Each request includes:
app,message,level,channel,datetimecontextandextra(normalized so exceptions and objects are JSON-safe)Authorization: Bearer {token}when a token is configured
Sync and async
async defaults to true. The HTTP call is deferred with Laravel's defer() helper and runs after the request or command has been handled, including failed requests.
Set async to false (or sync) to send immediately:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Thank you for considering contributing to Log Relay for Laravel! Please review our contributing guide to get started.
Credits
- All Contributors
License
Log Relay for Laravel is open-sourced software licensed under the MIT license.
All versions of log-relay with dependencies
illuminate/http Version ^12.0||^13.0
illuminate/support Version ^12.0||^13.0
monolog/monolog Version ^3.0