anboz/custom-logger

Custom logger

dev-master 2023-10-04 08:16 UTC

This package is not auto-updated.

Last update: 2024-11-06 10:25:30 UTC


README

installing

composer require anboz/custom-logger

Use

add channel to 
config/logging.php
[
    'channels' => [ 
        //... 
        'custom-log' => [
            'driver' => 'custom',
            'via' => \Anboz\CustomLogger\Logging\LoggerFactory::class,
            'logger_name' => 'logs',
            'level' => 'debug',
            'ignore_exceptions' => false,
        ],       
        //...
    ]
]

\Log::alert('first alert test from anboz logging');
//result

img.png

_

img_1.png