public function debug($key, $cookie = array(), $user = array()) {
        $scopes = array(
            'login'                => 'Login Successful',
            'loginFail'            => 'Login Failure',
            'loginCallback'        => 'Login Callback',
            'logout'            => 'Logout',
            'logoutCallback'    => 'Logout Callback',
            'cookieSet'            => 'Cookie Set',
            'cookieFail'        => 'Cookie Mismatch',
            'hashFail'            => 'Hash Mismatch',
            'custom'            => 'Custom Callback'
        );

        if ($this->_debug && isset($scopes[$key])) {
            $debug = (array) Configure::read('AutoLogin');
            $content = "";

            if ($cookie || $user) {
                if ($cookie) {
                    $content .= "Cookie information: \n\n" . print_r($cookie, true) . "\n\n\n";
                }

                if ($user) {
                    $content .= "User information: \n\n" . print_r($user, true);
                }
            } else {
                $content = 'No debug information.';
            }

            if (empty($debug['scope']) || in_array($key, (array) $debug['scope'])) {
                if (!empty($debug['email'])) {
                    mail($debug['email'], '[AutoLogin] ' . $scopes[$key], $content, 'From: ' . $debug['email']);
                } else {
                    $this->log($scopes[$key] . ': ' . $content, LOG_DEBUG);
                }
            }
        }
    }