PHPackages                             apextoolbox/laravel-logger - 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. apextoolbox/laravel-logger

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

apextoolbox/laravel-logger
==========================

Apex Toolbox Laravel Logger

1.0.0(3mo ago)31.2k↓71.4%MITPHPPHP &gt;=8.1

Since Mar 22Pushed 3mo agoCompare

[ Source](https://github.com/apextoolbox/laravel-logger)[ Packagist](https://packagist.org/packages/apextoolbox/laravel-logger)[ RSS](/packages/apextoolbox-laravel-logger/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (13)Versions (8)Used By (0)

Apex Toolbox for Laravel
========================

[](#apex-toolbox-for-laravel)

[![PHP Version](https://camo.githubusercontent.com/6518db1335bf20fdff07253dc6d6d0cec955b5fb6a8ef1382ac6d73687ecc07f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d626c7565)](https://php.net)[![Laravel](https://camo.githubusercontent.com/eb1b645c7c97d45a4eefdfe8b711797b9cc783a811c6b1122fd716ea1f666630/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d31302e7825323025374325323031312e7825323025374325323031322e782d726564)](https://laravel.com)

Automatic error tracking, logging, and performance monitoring for Laravel applications. Part of [ApexToolbox](https://apextoolbox.com/).

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

[](#installation)

```
composer require apextoolbox/laravel-logger
```

Add to `.env`:

```
APEXTOOLBOX_ENABLED=true
APEXTOOLBOX_TOKEN=your_token_here
```

Add the log channel to `config/logging.php`:

```
'channels' => [
    // ... other channels

    'apextoolbox' => [
        'driver' => 'monolog',
        'handler' => \ApexToolbox\Logger\Handlers\ApexToolboxLogHandler::class,
        'level' => 'debug',
    ],
],
```

Update `.env` to include the channel in your log stack:

```
LOG_STACK=daily,apextoolbox
```

Add the middleware for HTTP request tracking (optional):

```
// bootstrap/app.php (Laravel 11+)
->withMiddleware(function (Middleware $middleware) {
    $middleware->append(\ApexToolbox\Logger\Middleware\LoggerMiddleware::class);
})

// Or app/Http/Kernel.php (Laravel 10)
protected $middleware = [
    \ApexToolbox\Logger\Middleware\LoggerMiddleware::class,
];
```

Done! The SDK automatically captures exceptions, logs, and database queries.

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

[](#configuration)

Publish the config file for customization:

```
php artisan vendor:publish --tag=logger-config
```

This will create `config/apextoolbox.php` with the full configuration (all filtering options show their **default values** — you only need to override the sections you want to customize):

```
return [
    'enabled' => env('APEXTOOLBOX_ENABLED', true),
    'token' => env('APEXTOOLBOX_TOKEN', ''),

    // Paths to include/exclude from logging (supports wildcards)
    'path_filters' => [
        'include' => ['*'],
        'exclude' => ['_debugbar/*', 'telescope/*', 'horizon/*', 'api/health', 'api/ping'],
    ],

    // Headers filtering
    // 'exclude' removes headers entirely, 'mask' replaces values with '*******'
    'headers' => [
        'exclude' => [
            'authorization', 'x-api-key', 'cookie', 'x-auth-token',
            'x-access-token', 'x-refresh-token', 'bearer', 'x-secret',
            'x-private-key', 'authentication',
        ],
        'mask' => [
            'ssn', 'social_security', 'phone', 'email',
            'address', 'postal_code', 'zip_code',
        ],
    ],

    // Request body filtering
    // 'exclude' removes fields entirely, 'mask' replaces values with '*******'
    'body' => [
        'exclude' => [
            'password', 'password_confirmation', 'token', 'access_token',
            'refresh_token', 'api_key', 'secret', 'private_key', 'auth',
            'authorization', 'social_security', 'credit_card', 'card_number',
            'cvv', 'pin', 'otp',
        ],
        'mask' => [
            'ssn', 'social_security', 'phone', 'email',
            'address', 'postal_code', 'zip_code',
        ],
    ],

    // Response body filtering
    // 'exclude' removes fields entirely, 'mask' replaces values with '*******'
    'response' => [
        'exclude' => [
            'password', 'password_confirmation', 'token', 'access_token',
            'refresh_token', 'api_key', 'secret', 'private_key', 'auth',
            'authorization', 'social_security', 'credit_card', 'card_number',
            'cvv', 'pin', 'otp',
        ],
        'mask' => [
            'ssn', 'social_security', 'phone', 'email',
            'address', 'postal_code', 'zip_code',
        ],
    ],
];
```

### Environment Variables

[](#environment-variables)

VariableDescriptionDefault`APEXTOOLBOX_TOKEN`Your project tokenRequired`APEXTOOLBOX_ENABLED`Enable/disable tracking`true`Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10.x, 11.x, or 12.x

License
-------

[](#license)

MIT

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance80

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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 ~19 days

Recently: every ~26 days

Total

7

Last Release

104d ago

Major Versions

0.2.0 → 1.0.02026-03-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10213459?v=4)[Sviatoslav Pintokha](/maintainers/spintokha)[@spintokha](https://github.com/spintokha)

---

Top Contributors

[![spintokha](https://avatars.githubusercontent.com/u/10213459?v=4)](https://github.com/spintokha "spintokha (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/apextoolbox-laravel-logger/health.svg)

```
[![Health](https://phpackages.com/badges/apextoolbox-laravel-logger/health.svg)](https://phpackages.com/packages/apextoolbox-laravel-logger)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)[mehrancodes/laravel-harbor

A CLI tool to Quickly create On-Demand preview environment for your apps.

10097.5k](/packages/mehrancodes-laravel-harbor)

PHPackages © 2026

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