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§fn clone(&self) -> ProtoLogConfig
fn clone(&self) -> ProtoLogConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.