Function dlog_rs::configure [−][src]
pub fn configure(api_key: impl Into<String>)
Expand description
Configures dlog with the given API_KEY and sensitive default values
Arguments
api_key
- The dlog API_KEY for this service.
Examples
#[macro_use] extern crate log; fn main() { dlog_rs::configure("<API_KEY>"); info!("Hello from Rust!"); // Flushes all remaining logs when the app exits log::logger().flush(); }