xanpena/amtega-logging

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

Installs: 53

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/xanpena/amtega-logging

1.0 2023-01-25 11:59 UTC

This package is auto-updated.

Last update: 2025-11-25 17:50:39 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