Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
LoggerInterface.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Framework\DB;
7 
11 interface LoggerInterface
12 {
16  const TYPE_CONNECT = 'connect';
17  const TYPE_TRANSACTION = 'transaction';
18  const TYPE_QUERY = 'query';
27  public function log($str);
28 
32  public function startTimer();
33 
41  public function logStats($type, $sql, $bind = [], $result = null);
42 
47  public function critical(\Exception $e);
48 }
$type
Definition: item.phtml:13
logStats($type, $sql, $bind=[], $result=null)