public function interpolate($string, array $params, $level)
    {
        foreach ($params as $placeholder => $value) {
            $params['{'.(string) $placeholder.'}'] = (string) $value;
            unset($params[$placeholder]);
        }
        $message = strtr($string, $params);
        $this->writer($level, $message);
        $this->store([
            'message' => $message,
            'level'   => $level,
        ]);
    }
public function interpolate($string, array $params, $level)
    {
        foreach ($params as $placeholder => $value) {
            $params['{'.(string) $placeholder.'}'] = (string) $value;
            unset($params[$placeholder]);
        }
        $message = strtr($string, $params);
        $this->writer($level, $message);
        $this->store([
            'message' => $message,
            'level'   => $level,
        ]);
    }
public function interpolate ( $ string , array $ params , $ level ) { foreach ( $ params as $ placeholder => $ value ) { $ params [ '{' . ( string ) $ placeholder . '}' ] = ( string ) $ value ; unset ( $ params [ $ placeholder ] ) ; } $ message = strtr ( $ string , $ params ) ; $ this -> writer ( $ level , $ message ) ; $ this -> store ( [ 'message' => $ message , 'level' => $ level , ] ) ; }
Interpolate string with parameters.

@param (string) $string String with parameters
@param (array)  $params Parameter arrays
@param (string) $level  Level of log

@since 2.0.3

@return void
Interpolate string with parameters .