mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 02:59:10 +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());
|
||
|
});
|
||
|
}
|
||
|
}
|