PHPackages                             webimpian/laravel-log-central - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. webimpian/laravel-log-central

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

webimpian/laravel-log-central
=============================

Ship logs and exceptions from a Laravel app to a Log Central server.

v1.2.1(1mo ago)0277↓54.2%MITPHPPHP ^8.1

Since Jul 13Pushed 1mo agoCompare

[ Source](https://github.com/webimpian-os/laravel-log-central)[ Packagist](https://packagist.org/packages/webimpian/laravel-log-central)[ RSS](/packages/webimpian-laravel-log-central/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (0)

Laravel Log Central
===================

[](#laravel-log-central)

[![Latest Version on Packagist](https://camo.githubusercontent.com/fc0e6a39edbb4cd3aa1ad985d748f70b1c29bf3642b2dbfa0d15c82761e478a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776562696d7069616e2f6c61726176656c2d6c6f672d63656e7472616c2e737667)](https://packagist.org/packages/webimpian/laravel-log-central)[![Total Downloads](https://camo.githubusercontent.com/3318acdc68ec514da1c4f2041e2bc3cdc3419cff46ff8e98c0b7ce14a930aea4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776562696d7069616e2f6c61726176656c2d6c6f672d63656e7472616c2e737667)](https://packagist.org/packages/webimpian/laravel-log-central)[![License](https://camo.githubusercontent.com/70de20cb01db3e03d369e681e64e471978346ff8432086fa551b5fbbfdd3a2cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776562696d7069616e2f6c61726176656c2d6c6f672d63656e7472616c2e737667)](LICENSE.md)

Ship exceptions, log entries, and API request metrics from any Laravel application to a [Log Central](https://log.dev-aplikasiniaga.com) server. Install the package, set a few environment variables, and telemetry flows automatically over queued, batched background jobs — no code changes required.

Highlights
----------

[](#highlights)

- **Automatic exception tracking** — every reported exception (web, queue, Artisan, scheduler, or an explicit `report($e)`) is shipped with its fingerprint, stack trace, request context, and authenticated user.
- **Centralised log channels** — nominate the channels you care about (or `*` for all); their entries stream to Log Central while your local log files keep working unchanged.
- **Zero-touch API monitoring** — every `api/*` request is recorded with its method, route, status, and duration, plus the scrubbed response and payload, DB query count and time, peak memory, user-agent, and the authenticated user. Captured after the response is sent, so request latency is never affected.
- **Non-blocking by design** — all telemetry is dispatched to queued jobs, batched, and retried with capped backoff. Delivery failures are handled silently and can never loop or disrupt the host application.
- **Sensitive data scrubbed at the source** — passwords, tokens, keys, and card numbers are replaced with `[scrubbed]` before anything leaves your application.

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Laravel 8, 9, 10, 11, 12, or 13
- A running queue worker (Redis / Horizon recommended)
- A Log Central project key — create an app on the [dashboard](https://log.dev-aplikasiniaga.com) to obtain one

Installation
------------

[](#installation)

```
composer require webimpian/laravel-log-central
```

Add the connection details to your `.env`:

```
CENTRAL_LOG_URL=https://log.dev-aplikasiniaga.com/api
CENTRAL_LOG_TOKEN=your-project-key
CENTRAL_LOG_APP=your-app-slug
# * ships every channel, or give a comma-separated list
CENTRAL_LOG_CHANNELS=*
```

API monitoring is enabled by default for `api/*`. The following are optional — use them to narrow the monitored paths or control what is stored:

```
# path globs to monitor (comma-separated); empty disables
CENTRAL_LOG_API_PATHS=api/*
# response bodies to store: all | failed | none
CENTRAL_LOG_API_RESPONSE=all
# request payloads to store: all | failed | none
CENTRAL_LOG_API_PAYLOAD=all
# dispatch shipping jobs onto a dedicated queue
CENTRAL_LOG_QUEUE=logs
```

The service provider registers itself automatically — no further wiring is required.

Configuration
-------------

[](#configuration)

Publish the configuration file to customise scrub keys, the shipping queue, or defaults:

```
php artisan vendor:publish --tag=log-central-config
```

VariableDefaultPurpose`CENTRAL_LOG_URL`—Base API URL of the Log Central server`CENTRAL_LOG_TOKEN`—The application's project key`CENTRAL_LOG_APP`slug of `app.name`Must match the slug registered on Log Central`CENTRAL_LOG_CHANNELS`*(empty)*Channels to ship; `*` = all (exceptions ship regardless)`CENTRAL_LOG_API_PATHS``api/*`Paths whose API traffic is recorded; empty disables monitoring`CENTRAL_LOG_API_RESPONSE``all`Response bodies to include: `all`, `failed` (4xx/5xx only), or `none``CENTRAL_LOG_API_PAYLOAD``all`Request payloads to include: `all`, `failed` (4xx/5xx only), or `none``CENTRAL_LOG_QUEUE`default queueQueue name for shipping jobs`CENTRAL_LOG_ENABLED``true`Master switch (set `false` in testing)What gets captured
------------------

[](#what-gets-captured)

SituationShipped?Uncaught exception (web, queue, Artisan, scheduler)✅ as error`report($e)` inside a try/catch✅ as error`Log::...()` on a shipped channel✅ as log entry`Log::...()` on an unlisted channel❌ file onlyRequest to a matched `api/*` path✅ as API requestException silently swallowed without `report()`❌Testing
-------

[](#testing)

```
composer install
composer test
```

License
-------

[](#license)

The MIT License (MIT). See [LICENSE.md](LICENSE.md) for details.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance90

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

6

Last Release

47d ago

PHP version history (2 changes)v1.0.0PHP ^8.2

v1.1.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba882a53035a44fffc01cd910b1705b8ca17b5eb605a763711632be04ad78512?d=identicon)[webimpian](/maintainers/webimpian)

---

Top Contributors

[![khairulimran-97](https://avatars.githubusercontent.com/u/105085586?v=4)](https://github.com/khairulimran-97 "khairulimran-97 (6 commits)")

---

Tags

laravelloggingerror-trackinglog-central

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/webimpian-laravel-log-central/health.svg)

```
[![Health](https://phpackages.com/badges/webimpian-laravel-log-central/health.svg)](https://phpackages.com/packages/webimpian-laravel-log-central)
```

###  Alternatives

[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.4k137.4M247](/packages/sentry-sentry-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

89313.5M195](/packages/spatie-laravel-health)[psalm/plugin-laravel

Psalm plugin for Laravel

3365.5M359](/packages/psalm-plugin-laravel)[spatie/laravel-flare

Send Laravel errors to Flare

131.8M8](/packages/spatie-laravel-flare)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

13102.4k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
