1 | <?php |
||
9 | class PsrSqlLogger implements SQLLogger |
||
10 | { |
||
11 | /** @var callable */ |
||
12 | private $logger; |
||
13 | |||
14 | /** @var float */ |
||
15 | private $start; |
||
16 | |||
17 | /** @var string */ |
||
18 | private $queryId; |
||
19 | |||
20 | /** |
||
21 | * PsrSqlLogger constructor. |
||
22 | * @param LoggerInterface $logger |
||
23 | * @param string $level |
||
24 | */ |
||
25 | 6 | public function __construct(LoggerInterface $logger, $level = LogLevel::INFO) |
|
39 | |||
40 | 5 | public function startQuery($sql, array $params = null, array $types = null) |
|
53 | |||
54 | 5 | protected function getStartQueryContext($sql, array $params = null, array $types = null) |
|
61 | |||
62 | 3 | public function stopQuery() |
|
73 | } |
||
74 |