public function log($level, $message, array $context = [])
    {
        // Resolve category from 'context'
        $category = ArrayHelper::remove($context, 'category', $this->category);

        // Resolve level
        $level = ArrayHelper::getValue($this->map, $level, $this->level);

        $this->logger->log(
            $this->interpolate($message, $context),
            $level,
            $category
        );
    }
public function log($level, $message, array $context = [])
    {
        // Resolve category from 'context'
        $category = ArrayHelper::remove($context, 'category', $this->category);

        // Resolve level
        $level = ArrayHelper::getValue($this->map, $level, $this->level);

        $this->logger->log(
            $this->interpolate($message, $context),
            $level,
            $category
        );
    }
public function log ( $ level , $ message , array $ context = [ ] ) { // Resolve category from 'context' $ category = ArrayHelper :: remove ( $ context , 'category' , $ this -> category ) ; // Resolve level $ level = ArrayHelper :: getValue ( $ this -> map , $ level , $ this -> level ) ; $ this -> logger -> log ( $ this -> interpolate ( $ message , $ context ) , $ level , $ category ) ; }
Log a message, transforming from PSR3 to the closest Yii2.

@inheritdoc
Log a message transforming from PSR3 to the closest Yii2 .