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

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

toshkq93/laravel-logger
=======================

logging for laravel src/routes

1.0.4(4y ago)05MITPHPPHP ^8.1

Since May 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Toshkq93/laravel-logger)[ Packagist](https://packagist.org/packages/toshkq93/laravel-logger)[ RSS](/packages/toshkq93-laravel-logger/feed)WikiDiscussions master Synced 1mo ago

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

API Logger
==========

[](#api-logger)

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

[](#installation)

Install the package via composer

```
composer require toshkq93/laravel-logger
```

Usage
-----

[](#usage)

1. Laravel 5.5 and higher uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider. If you use a lower version of Laravel you must register it in your *app.php* file:

```
Toshkq93\Logger\Providers\LoggerServiceProvider::class
```

2. Publish the config file with:

```
php artisan vendor:publish --provider="Toshkq93\Logger\Providers\LoggerProvider"
```

By default the logger will use *file* to log the data.

3. Add middleware named ***logger*** to the route or controller you want to log data

```
Route::group([
        'middleware' => 'logger',
    ], function (){
    Route::post('/start', 'start');
});
```

Saving data will be stable along the way ***storage/logs/{NAME\_YOUR\_PROJECT}***. If you want to split a folder into several routes, you need to create a class with variable constants along the path. Example:

```
class LoggerName
{
    const TELEPHONY = 'telephony';
    const USER = 'user';
    const CHAT = 'chat';
    const FILE = 'file';

}
```

And add in group route:

```
Route::group([
        'middleware' => 'logger',
        'group' => LoggerNameEnum::TELEPHONY
    ],function (){
        Route::post('/start', 'start');
        Route::post('/finish', 'finish');
    });
```

And when you go along these paths of the route, then along the way ***storage/logs/{NAME\_YOUR\_PROJECT}/{LoggerNameEnum::TELEPHONY}***

If you get an error, then a file called error.log will be created, if everything is fine, then success.log

4. Dashboard can be accessible via yourdomain.com/logs

Security
--------

[](#security)

If you discover any security related issues, please email ****** instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

5

Last Release

1464d ago

### Community

Maintainers

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

---

Tags

laravelloggerroute

### Embed Badge

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

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

###  Alternatives

[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8674.9k](/packages/illuminated-console-logger)[yzen.dev/mono-processor

This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.

116.1k](/packages/yzendev-mono-processor)

PHPackages © 2026

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