src/log/Logger.php
private static function resolveLogCaller(array &$context) {
        if (!key_exists('trace', $context))
            self::generateStackTrace($context);
        $trace = $context['trace'];

        $context['class'] = isset($trace[0]['class']) ? $trace[0]['class'] : '';
    }
private static function resolveLogCaller(array &$context) {
        if (!key_exists('trace', $context))
            self::generateStackTrace($context);
        $trace = $context['trace'];

        $context['class'] = isset($trace[0]['class']) ? $trace[0]['class'] : '';
    }
private static function resolveLogCaller ( array & $ context ) { if ( ! key_exists ( 'trace' , $ context ) ) self :: generateStackTrace ( $ context ) ; $ trace = $ context [ 'trace' ] ; $ context [ 'class' ] = isset ( $ trace [ 0 ] [ 'class' ] ) ? $ trace [ 0 ] [ 'class' ] : '' ; }
Resolve the class the logger was called from and store it in the log context under the key "class".

@param  array $context - reference to the log context


TODO:  test with Closure and internal PHP functions
Resolve the class the logger was called from and store it in the log context under the key class .