Action/Api/AbstractApiAction.php
protected function logData($message, array $data, array $filterKeys = [])
    {
        if (!$this->logger) {
            return;
        }

        if (!empty($filterKeys)) {
            $data = array_intersect_key($data, array_flip($filterKeys));
        }

        $data = array_map(function($key, $value) {
            return "$key: $value";
        }, array_keys($data), $data);

        $this->logger->debug($message . ': ' . implode(', ', $data));
    }
protected function logData($message, array $data, array $filterKeys = [])
    {
        if (!$this->logger) {
            return;
        }

        if (!empty($filterKeys)) {
            $data = array_intersect_key($data, array_flip($filterKeys));
        }

        $data = array_map(function($key, $value) {
            return "$key: $value";
        }, array_keys($data), $data);

        $this->logger->debug($message . ': ' . implode(', ', $data));
    }
protected function logData ( $ message , array $ data , array $ filterKeys = [ ] ) { if ( ! $ this -> logger ) { return ; } if ( ! empty ( $ filterKeys ) ) { $ data = array_intersect_key ( $ data , array_flip ( $ filterKeys ) ) ; } $ data = array_map ( function ( $ key , $ value ) { return "$key: $value" ; } , array_keys ( $ data ) , $ data ) ; $ this -> logger -> debug ( $ message . ': ' . implode ( ', ' , $ data ) ) ; }
Logs the given message and data.

@param string $message
@param array  $data
@param array  $filterKeys
Logs the given message and data .