Download the PHP package mvd81/laravel-logreader without Composer
On this page you can find all versions of the php package mvd81/laravel-logreader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mvd81/laravel-logreader
More information about mvd81/laravel-logreader
Files in mvd81/laravel-logreader
Package laravel-logreader
Short Description A Laravel client package to read /search and browse log files for logreader.dev
License MIT
Informations about the package laravel-logreader
Laravel Logreader
This is the client package for logreader.dev. Install it on your Laravel application to allow the Logreader to remotely read your log files via a secure API.
Installation
Configuration
Publish the config file:
Token
Add the token you received from the Logreader application to your .env:
You can find this token in the logreader.dev dashboard after registering your application.
Options
| Option | Env variable | Default | Description |
|---|---|---|---|
enabled |
LOGREADER_ENABLED |
true |
Enable or disable the API |
token |
LOGREADER_TOKEN |
null |
Token provided by the Logreader app |
exclude_logs |
LOGREADER_EXCLUDE_LOGS |
'' |
Comma-separated list of files/patterns to exclude |
context.enabled |
LOGREADER_CONTEXT_ENABLED |
false |
Add request URL and HTTP method to every log entry |
To disable the logreader without removing the package:
To exclude specific log files or directories:
Request context
When enabled, a global middleware is automatically registered that adds the following to every log entry using Log::shareContext():
| Field | Description |
|---|---|
url |
Full URL of the request |
method |
HTTP method (GET, POST, etc.) |
This makes it easier to correlate log entries with the request that caused them when browsing logs in the dashboard.
License
MIT
All versions of laravel-logreader with dependencies
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/routing Version ^10.0|^11.0|^12.0|^13.0