xanpena/amtega-logging

Useful class to customize log messages in Laravel following Amtega (Xunta de Galicia) standards.

1.0 2023-01-25 11:59 UTC

This package is auto-updated.

Last update: 2024-04-25 14:39:19 UTC


README

Useful class to customize log messages in Laravel following Amtega (Xunta de Galicia) standards.

Installation

You can install the package via composer:

composer require xanpena/amtega-logging

Change the formatter in channels configuration of your config/logging.php file:

    'single' => [
        'driver' => 'single',
        'path'   => storage_path('logs/laravel.log'),
        'level'  => env('LOG_LEVEL', 'debug'),
    ],

    'daily' => [
        'driver' => 'daily',
        'tap'    => [Xanpena\AmtegaLogging\AmtegaFormatter::class],
        'path'   => storage_path('logs/laravel-daily.log'),
        'level'  => env('LOG_LEVEL', 'debug'),
        'days'   => 14,
    ],

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please using the issue tracker.

Credits