src/Logger.php
private function outputRecursiveContext($level, array $context, $indent)
    {
        foreach ($context as $key => $val) {
            $this->climate->tab($indent);

            $this->climate->{$level}()->inline("{$key}: ");

            if (is_array($val)) {
                $this->climate->{$level}("[");
                $this->outputRecursiveContext($level, $val, $indent + 1);
                $this->climate->tab($indent)->{$level}("]");
            } else {
                $this->climate->{$level}((string)$val);
            }
        }
    }
private function outputRecursiveContext($level, array $context, $indent)
    {
        foreach ($context as $key => $val) {
            $this->climate->tab($indent);

            $this->climate->{$level}()->inline("{$key}: ");

            if (is_array($val)) {
                $this->climate->{$level}("[");
                $this->outputRecursiveContext($level, $val, $indent + 1);
                $this->climate->tab($indent)->{$level}("]");
            } else {
                $this->climate->{$level}((string)$val);
            }
        }
    }
private function outputRecursiveContext ( $ level , array $ context , $ indent ) { foreach ( $ context as $ key => $ val ) { $ this -> climate -> tab ( $ indent ) ; $ this -> climate -> { $ level } ( ) -> inline ( "{$key}: " ) ; if ( is_array ( $ val ) ) { $ this -> climate -> { $ level } ( "[" ) ; $ this -> outputRecursiveContext ( $ level , $ val , $ indent + 1 ) ; $ this -> climate -> tab ( $ indent ) -> { $ level } ( "]" ) ; } else { $ this -> climate -> { $ level } ( ( string ) $ val ) ; } } }
Handle recursive arrays in the logging context.

@param string $level One of the LogLevel constants
@param array $context The array of context to output
@param int $indent The current level of indentation to be used

@return void
Handle recursive arrays in the logging context .