This commit is contained in:
Jaeger 2017-06-09 12:21:49 +08:00
parent 7f6b6e279e
commit 967f2d95cd
2 changed files with 4 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class QueryList
*/ */
public static function setLog($handler) public static function setLog($handler)
{ {
if(class_exists(Logger::class)) if(class_exists('Monolog\Logger'))
{ {
if(is_string($handler)) if(is_string($handler))
{ {

View File

@ -7,6 +7,9 @@
"PHP":">=5.3.0", "PHP":">=5.3.0",
"jaeger/phpquery-single": "^0.9" "jaeger/phpquery-single": "^0.9"
}, },
"suggest":{
"monolog/monolog":"Log support"
},
"license": "MIT", "license": "MIT",
"authors": [ "authors": [
{ {