- ⌂ log
- Methods
log::type_count()
Return the number of events in an event log.
Prototype
integer type_count(integer $type, bool $or_worse = FALSE)
Parameters
- type - Event Type to count.
- or_worse - If TRUE, events of the specified type and more sever types will be counted.
Example
use \io_comand_log\event\type;
$num_events = $repo->SystemLog->type_count(type::ERROR, TRUE);