Function stackdriver_logger::init

source ·
pub fn init()
Expand description

Basic initializer, expects SERVICE_NAME and SERVICE_VERSION env variables to be defined, otherwise you won’t have much context available in Stackdriver.

Usage

use log::info;

stackdriver_logger::init();
info!("Make sur you don't forget the env variables !");