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(1mo ago)2862↓50%MITPHPPHP &gt;=8.1

Since Mar 22Pushed 1mo 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 1mo ago

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

45

—

FairBetter than 92% of packages

Maintenance96

Actively maintained with recent releases

Popularity21

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

Recently: every ~26 days

Total

7

Last Release

48d ago

Major Versions

0.2.0 → 1.0.02026-03-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/552a636678cbd921776457deb0df74a1cad616c8c4e29baaa9d35594ba5f9db3?d=identicon)[spintokha](/maintainers/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.

9682.1M97](/packages/roots-acorn)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[larabug/larabug

Laravel 6.x/7.x/8.x/9.x/10.x/11.x/12.x/13.x bug notifier

299549.3k1](/packages/larabug-larabug)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

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

PHPackages © 2026

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