mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
12 lines
245 B
PHP
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());
|
|
});
|
|
}
|
|
}
|