message/message.rs
1#[macro_use]
2extern crate rollbar;
3
4fn main() {
5 let client = rollbar::Client::new("ACCESS_TOKEN", "ENVIRONMENT");
6 let _ = report_message!(client, "hai").join();
7
8 /* // `report_message!` expands to the following code:
9 * client.build_report()
10 * .from_message("hai")
11 * .with_level(rollbar::Level::INFO)
12 * .send();
13 * // If you want to customize the message, you might not want to use the macro.
14 * // Join the thread only for testing purposes.
15 */
16}