tomatophp/tomato-user-activities

Advanced logger to save user activities from requests

Fund package maintenance!
3x1io

Installs: 55

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

v1.0.3 2024-04-29 01:19 UTC

This package is auto-updated.

Last update: 2024-04-29 01:19:39 UTC


README

Screenshot

Tomato User Activities

Advanced logger is a laravel package used to automatically log every request made to you laravel application. Each request is also identified by hash, which can be used in standard log to identify the request.

This package has been inspired by package https://github.com/andersao/laravel-request-logger from Anderson Andrade.

Installation

composer require tomatophp/tomato-user-activities

Configuration

All options are described in config/tomato-user-activities.php.

Using request hash in standard log file in Laravel 5.7

If you would like to have request identifier in you standard log, to match log events with request you could add to config/logging.php

'tap' => [TomatoPHP\TomatoUserActivities\LogCustomizers\HashLogCustomizer::class],

to daily channel. The resulted code should looks like

    'channels' => [
        ...

        'daily' => [
            'driver' => 'daily',
            'path' => storage_path('logs/laravel.log'),
            'level' => 'debug',
            'days' => 14,
            'tap' => [TomatoPHP\TomatoUserActivities\LogCustomizers\HashLogCustomizer::class],
        ],

        ...
    ],

This log modifier can be used also in other channels, however it uses extended LineFormatter.

Support

you can join our discord server to get support TomatoPHP

Docs

you can check docs of this package on Docs

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.