Struct diagnostics_data::LogsDataBuilder
source · pub struct LogsDataBuilder { /* private fields */ }
Expand description
Internal state of the LogsDataBuilder impl External customers should not directly access these fields.
Implementations§
source§impl LogsDataBuilder
impl LogsDataBuilder
sourcepub fn new(args: BuilderArgs) -> Self
pub fn new(args: BuilderArgs) -> Self
Constructs a new LogsDataBuilder
sourcepub fn set_dropped(self, value: u64) -> Self
pub fn set_dropped(self, value: u64) -> Self
Sets the number of dropped messages. If value is greater than zero, a DroppedLogs error will also be added to the list of errors or updated if already present.
pub fn set_severity(self, severity: Severity) -> Self
sourcepub fn set_message(self, msg: impl Into<String>) -> Self
pub fn set_message(self, msg: impl Into<String>) -> Self
Sets the message to be printed in the log message
sourcepub fn set_format_printf(
self,
format: impl Into<String>,
args: Vec<String>
) -> Self
pub fn set_format_printf( self, format: impl Into<String>, args: Vec<String> ) -> Self
Sets the printf format and arguments.
sourcepub fn set_file(self, file: impl Into<String>) -> Self
pub fn set_file(self, file: impl Into<String>) -> Self
Sets the file name that printed this message.