<?php
$countResult1 = SeasLog::analyzerCount();
//with `level`
$countResult2 = SeasLog::analyzerCount(SEASLOG_DEBUG);
//with `level` and `log_path`
$countResult3 = SeasLog::analyzerCount(SEASLOG_ERROR,date('Ymd',time()));
//with `level` and `key_word`
$countResult4 = SeasLog::analyzerCount(SEASLOG_DEBUG,NULL,'accessToken');
var_dump($countResult1,$countResult2,$countResult3,$countResult4);
?>
The above example will output
something similar to:
array(8) {
["DEBUG"]=>
int(180)
["INFO"]=>
int(214)
["NOTICE"]=>
int(0)
["WARNING"]=>
int(0)
["ERROR"]=>
int(228)
["CRITICAL"]=>
int(244)
["ALERT"]=>
int(1)
["EMERGENCY"]=>
int(0)
}
int(180)
int(228)
int(29)