Struct bugsnag::Bugsnag
[−]
[src]
pub struct Bugsnag { /* fields omitted */ }
Methods
impl Bugsnag
[src]
fn new(api_key: &str, project_source_dir: &str) -> Bugsnag
Creates a new instance of the Bugsnag api
fn notify(
&self,
error_class: &str,
message: &str,
severity: Severity,
methods_to_ignore: Option<&[&str]>,
context: Option<&str>
) -> Result<(), Error>
&self,
error_class: &str,
message: &str,
severity: Severity,
methods_to_ignore: Option<&[&str]>,
context: Option<&str>
) -> Result<(), Error>
Converts all data into the Bugsnag json formats and sends this json to the Bugsnag web interface.
Arguments
methods_to_ignore
- A list of methods names. These methods are marked as not belonging to the project when the stacktrace is generated. The Bugsnag web interface will use this information to hide unnecessary data. To check if a method should be marked as not belonging to the project, the method name reported by the stacktrace is checked if it contains a method name in this list.
fn set_device_info(&mut self, hostname: Option<&str>, version: Option<&str>)
Sets information about the device. These information will be send to Bugsnag when notify is called.
fn set_app_info(
&mut self,
version: Option<&str>,
release_stage: Option<&str>,
atype: Option<&str>
)
&mut self,
version: Option<&str>,
release_stage: Option<&str>,
atype: Option<&str>
)
Sets information about the application that uses this api. These information will be send to Bugsnag when notify is called.