private function _logIt( $level, $message, $context = [ ] )
    {
        foreach ( $this->_handlers as $handler )
        {
            $args[ 'message' ] = $message;

            /** @var IHandler $handler */
            $record = $handler->createRecord( $level, $args, $context );

            $handler->handle( $record );
        }
    }
private function _logIt( $level, $message, $context = [ ] )
    {
        foreach ( $this->_handlers as $handler )
        {
            $args[ 'message' ] = $message;

            /** @var IHandler $handler */
            $record = $handler->createRecord( $level, $args, $context );

            $handler->handle( $record );
        }
    }
private function _logIt ( $ level , $ message , $ context = [ ] ) { foreach ( $ this -> _handlers as $ handler ) { $ args [ 'message' ] = $ message ; /** @var IHandler $handler */ $ record = $ handler -> createRecord ( $ level , $ args , $ context ) ; $ handler -> handle ( $ record ) ; } }
Logs messages to the log.

@param int    $level   the log level
@param string $message the log message
@param array  $context
Logs messages to the log .