Download the PHP package nnaemekanweke/logwatch without Composer
On this page you can find all versions of the php package nnaemekanweke/logwatch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nnaemekanweke/logwatch
More information about nnaemekanweke/logwatch
Files in nnaemekanweke/logwatch
Package logwatch
Short Description Push your Laravel app's logs to LogWatch as a standard log channel.
License MIT
Informations about the package logwatch
LogWatch Laravel Client
Push your Laravel app's logs to LogWatch as a standard
Laravel log channel — no new logging API to learn, just Log::info(...) like
always.
Requires Laravel 10, 11, 12, or 13, on PHP 8.1+. Laravel 8 and 9 are past their security-support window (Composer's own installer now refuses to install them at all — every release is flagged by an unpatched advisory), so they're intentionally not supported. If you're still on one of them, upgrade Laravel first.
Installation
Add to .env:
Get LOGWATCH_API_KEY from your LogWatch dashboard under Settings > Tenant
API Key — it's shared across your whole tenant, not tied to one user.
Usage
Register the channel in config/logging.php:
Then either log straight to it:
or add it to your stack channel so every log line goes to LogWatch
alongside your normal log file:
How it works
- Log groups and streams are created automatically on first push (like
CloudWatch's
PutLogEvents) — nothing to provision up front. - Records are buffered in memory and flushed as a single batched API call at the end of the request or command, instead of one HTTP call per log line.
- Delivery failures (network errors, LogWatch downtime) are caught and swallowed — a broken connection to LogWatch will never break your app or throw from a log call.
Configuration reference
| Env var | Default | Description |
|---|---|---|
LOGWATCH_API_KEY |
— | Required. Your tenant's API key. |
LOGWATCH_ENDPOINT |
http://localhost:8000 |
Base URL of your LogWatch instance. |
LOGWATCH_LOG_GROUP |
APP_NAME |
Log group name (auto-created). |
LOGWATCH_LOG_STREAM |
APP_ENV |
Log stream name (auto-created). |
LOGWATCH_BUFFER_SIZE |
50 |
Records buffered before an early flush. |
LOGWATCH_TIMEOUT |
5 |
HTTP timeout in seconds. |
Testing
All versions of logwatch with dependencies
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
monolog/monolog Version ^3.0