Function rocket_sentry_logger::log[][src]

pub fn log(message: &str, level: LogLevel)

Logs a message to sentry. Use the LogLevel enum to set up the desired logging level. Every step tracked previous to the log on the same execution thread will be sent along with the message.

 fn main() {
     logger::log("This is a mock message, Hello World!", LogLevel::Info);
 }