This package needs a Laravel application. It provides a logging channel to log exceptions and messages to PBM Monitoring System.
You can install the package via composer:
composer require pbmengine/pbm-logger
Add the following channel in your Laravel logging.php file:
// config/logging.php
'channels' => [
// ...
'stack' => [
'driver' => 'stack',
'channels' => ['pbm', 'daily'],
'ignore_exceptions' => false,
],
'pbm' => [
'driver' => 'custom',
'via' => Pbmengine\Logger\LogFactory::class,
'anonymize_ips' => true,
'api_endpoint' => '<your endpoint>/api/reports',
'api_key' => env('PBM_LOGGER_KEY'),
'level' => Monolog\Logger::DEBUG,
],
// ...
]
Add the PBM_LOGGER_KEY
to your .env file.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email stefan@sriehl.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.