diff --git a/QueryList.php b/QueryList.php index 0ba8309..0efe89a 100644 --- a/QueryList.php +++ b/QueryList.php @@ -106,7 +106,7 @@ class QueryList */ public static function setLog($handler) { - if(class_exists(Logger::class)) + if(class_exists('Monolog\Logger')) { if(is_string($handler)) { diff --git a/composer.json b/composer.json index 0ac5766..3bebd45 100644 --- a/composer.json +++ b/composer.json @@ -7,6 +7,9 @@ "PHP":">=5.3.0", "jaeger/phpquery-single": "^0.9" }, + "suggest":{ + "monolog/monolog":"Log support" + }, "license": "MIT", "authors": [ {