anboz/custom-logger

Custom logger

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

This package is not auto-updated.

Last update: 2024-06-19 08:36:26 UTC


README

custom logging

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