Struct diem_logger::Metadata
source · pub struct Metadata { /* private fields */ }
Expand description
Associated metadata with every log to identify what kind of log and where it came from
Implementations§
source§impl Metadata
impl Metadata
pub const fn new( level: Level, target: &'static str, module_path: &'static str, file: &'static str, line: u32, location: &'static str ) -> Self
pub fn enabled(&self) -> bool
pub fn level(&self) -> Level
pub fn target(&self) -> &'static str
pub fn module_path(&self) -> &'static str
pub fn file(&self) -> &'static str
pub fn line(&self) -> u32
pub fn location(&self) -> &'static str
Trait Implementations§
source§impl Deserialize<'static> for Metadata
impl Deserialize<'static> for Metadata
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more