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'] : '';
    }