Trait windows::Foundation::Diagnostics::ILoggingTarget_Impl
pub trait ILoggingTarget_Impl: Sized {
// Required methods
fn IsEnabled(&self) -> Result<bool>;
fn IsEnabledWithLevel(&self, level: LoggingLevel) -> Result<bool>;
fn IsEnabledWithLevelAndKeywords(
&self,
level: LoggingLevel,
keywords: i64
) -> Result<bool>;
fn LogEvent(&self, eventname: &HSTRING) -> Result<()>;
fn LogEventWithFields(
&self,
eventname: &HSTRING,
fields: Option<&LoggingFields>
) -> Result<()>;
fn LogEventWithFieldsAndLevel(
&self,
eventname: &HSTRING,
fields: Option<&LoggingFields>,
level: LoggingLevel
) -> Result<()>;
fn LogEventWithFieldsAndOptions(
&self,
eventname: &HSTRING,
fields: Option<&LoggingFields>,
level: LoggingLevel,
options: Option<&LoggingOptions>
) -> Result<()>;
fn StartActivity(&self, starteventname: &HSTRING) -> Result<LoggingActivity>;
fn StartActivityWithFields(
&self,
starteventname: &HSTRING,
fields: Option<&LoggingFields>
) -> Result<LoggingActivity>;
fn StartActivityWithFieldsAndLevel(
&self,
starteventname: &HSTRING,
fields: Option<&LoggingFields>,
level: LoggingLevel
) -> Result<LoggingActivity>;
fn StartActivityWithFieldsAndOptions(
&self,
starteventname: &HSTRING,
fields: Option<&LoggingFields>,
level: LoggingLevel,
options: Option<&LoggingOptions>
) -> Result<LoggingActivity>;
}
Required Methods§
fn IsEnabled(&self) -> Result<bool>
fn IsEnabledWithLevel(&self, level: LoggingLevel) -> Result<bool>
fn IsEnabledWithLevelAndKeywords( &self, level: LoggingLevel, keywords: i64 ) -> Result<bool>
fn LogEvent(&self, eventname: &HSTRING) -> Result<()>
fn LogEventWithFields( &self, eventname: &HSTRING, fields: Option<&LoggingFields> ) -> Result<()>
fn LogEventWithFieldsAndLevel( &self, eventname: &HSTRING, fields: Option<&LoggingFields>, level: LoggingLevel ) -> Result<()>
fn LogEventWithFieldsAndOptions( &self, eventname: &HSTRING, fields: Option<&LoggingFields>, level: LoggingLevel, options: Option<&LoggingOptions> ) -> Result<()>
fn StartActivity(&self, starteventname: &HSTRING) -> Result<LoggingActivity>
fn StartActivityWithFields( &self, starteventname: &HSTRING, fields: Option<&LoggingFields> ) -> Result<LoggingActivity>
fn StartActivityWithFieldsAndLevel( &self, starteventname: &HSTRING, fields: Option<&LoggingFields>, level: LoggingLevel ) -> Result<LoggingActivity>
fn StartActivityWithFieldsAndOptions( &self, starteventname: &HSTRING, fields: Option<&LoggingFields>, level: LoggingLevel, options: Option<&LoggingOptions> ) -> Result<LoggingActivity>
Object Safety§
This trait is not object safe.