SimpleHistory::on_filter_simple_history_log PHP Method

on_filter_simple_history_log() public method

Function called when running filter "simple_history_log"
Since: 2.13
public on_filter_simple_history_log ( $message = null, array $context = null, string $level = "info" )
$context array Optional context to add to the logged data
$level string The loglevel. Must be one of the existing ones. Defaults to "info".
    public function on_filter_simple_history_log($message = null, $context = null, $level = "info")
    {
        if (empty($message)) {
            return;
        }
        if (!is_array($context)) {
            $context = array();
        }
        SimpleLogger()->log($level, $message, $context);
    }
SimpleHistory