pub struct ProtoLogConfig {
pub group_overrides: Vec<ProtoLogGroup>,
pub tracing_mode: Option<i32>,
pub default_log_from_level: Option<i32>,
}Expand description
Custom configuration for the “android.protolog” data source. ProtoLog is a logging mechanism that is intented to be more efficient than logcat. This configures what logs to capture in the tracing instance.
Fields§
§group_overrides: Vec<ProtoLogGroup>Specified the configurations for each of the logging groups. If none is specified for a group the defaults will be used.
tracing_mode: Option<i32>Specified what tracing mode to use for the tracing instance.
default_log_from_level: Option<i32>If set, any message with log level higher than this level (inclusive) will be traced. Group overrides take precedence over this value.
Implementations§
Source§impl ProtoLogConfig
impl ProtoLogConfig
Sourcepub fn tracing_mode(&self) -> TracingMode
pub fn tracing_mode(&self) -> TracingMode
Returns the enum value of tracing_mode, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_tracing_mode(&mut self, value: TracingMode)
pub fn set_tracing_mode(&mut self, value: TracingMode)
Sets tracing_mode to the provided enum value.
Sourcepub fn default_log_from_level(&self) -> ProtoLogLevel
pub fn default_log_from_level(&self) -> ProtoLogLevel
Returns the enum value of default_log_from_level, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_default_log_from_level(&mut self, value: ProtoLogLevel)
pub fn set_default_log_from_level(&mut self, value: ProtoLogLevel)
Sets default_log_from_level to the provided enum value.
Trait Implementations§
Source§impl Clone for ProtoLogConfig
impl Clone for ProtoLogConfig
Source§impl Debug for ProtoLogConfig
impl Debug for ProtoLogConfig
Source§impl Default for ProtoLogConfig
impl Default for ProtoLogConfig
Source§impl Message for ProtoLogConfig
impl Message for ProtoLogConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.