public static function __print()
    {
        if (error_reporting() !== E_ALL) {
            return;
        }

        // Prevent output when doing AJAX/JSON requests

        if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])
            && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest') {
            return;

            if (isset($_SERVER['HTTP_ACCEPT']) && in_array(
                'application/json',
                explode(',', $_SERVER['HTTP_ACCEPT']),
                true
            )) {
                return;
            }
        }

        $a = func_get_args();
        call_user_func_array(array("\Libvaloa\Debug\Debug", 'append'), $a);
    }