/** * Send log information to Amon * * @param string $message The log message * @param mixed $tag Tags for the log message * @return void */ protected static function amon($message, $tags) { $data = array('message' => $message, 'tags' => $tags); Amon_Request::request($data, 'log'); }
/** * Amon Exception handler * * @param Exception $e the exception * @return bool */ private static function handle_exception($exception) { $data = new Amon_Data($exception); Amon_Request::request($data->data, 'exception'); }