pub struct InitConfig {
pub service: Option<&'static str>,
pub release: Option<Cow<'static, str>>,
pub environment: &'static str,
}Expand description
Initial Logger configuration. Lets you configure the service name such as Recipes API, release name & running environment.
fn main() {
let config = InitConfig {
service: Some("Recipes API"),
environment: "Production",
..Default::default()
}
logger::init(Some(config));
}Fields§
§service: Option<&'static str>§release: Option<Cow<'static, str>>§environment: &'static strTrait Implementations§
Auto Trait Implementations§
impl Freeze for InitConfig
impl RefUnwindSafe for InitConfig
impl Send for InitConfig
impl Sync for InitConfig
impl Unpin for InitConfig
impl UnwindSafe for InitConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more