v2board/app/Logging/MysqlLogger.php
2023-05-24 01:08:13 +08:00

12 lines
245 B
PHP

<?php
namespace App\Logging;
class MysqlLogger
{
public function __invoke(array $config){
return tap(new \Monolog\Logger('mysql'), function ($logger) {
$logger->pushHandler(new MysqlLoggerHandler());
});
}
}