pub struct LogConfigBuilder { /* private fields */ }Expand description
Builder for LogConfig.
Implementations§
Source§impl LogConfigBuilder
impl LogConfigBuilder
Sourcepub fn format(self, format: OutputFormat) -> Self
pub fn format(self, format: OutputFormat) -> Self
Set output format.
Sourcepub fn output_file(self, path: impl Into<PathBuf>) -> Self
pub fn output_file(self, path: impl Into<PathBuf>) -> Self
Set output to file with optional rotation.
Sourcepub fn output_file_rotated(
self,
path: impl Into<PathBuf>,
rotation: FileRotation,
) -> Self
pub fn output_file_rotated( self, path: impl Into<PathBuf>, rotation: FileRotation, ) -> Self
Set output to file with rotation.
Sourcepub fn output_stdout(self) -> Self
pub fn output_stdout(self) -> Self
Set output to stdout.
Sourcepub fn output_syslog(self, facility: SyslogFacility) -> Self
pub fn output_syslog(self, facility: SyslogFacility) -> Self
Set output to syslog.
Sourcepub fn participant_filter(self, pattern: impl Into<String>) -> Self
pub fn participant_filter(self, pattern: impl Into<String>) -> Self
Set participant filter (GUID prefix pattern).
Sourcepub fn topic_filter(self, pattern: impl Into<String>) -> Self
pub fn topic_filter(self, pattern: impl Into<String>) -> Self
Set topic filter pattern.
Sourcepub fn topic_pattern(self, pattern: impl Into<String>) -> Self
pub fn topic_pattern(self, pattern: impl Into<String>) -> Self
Set log topic pattern to subscribe.
Trait Implementations§
Source§impl Debug for LogConfigBuilder
impl Debug for LogConfigBuilder
Source§impl Default for LogConfigBuilder
impl Default for LogConfigBuilder
Source§fn default() -> LogConfigBuilder
fn default() -> LogConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LogConfigBuilder
impl RefUnwindSafe for LogConfigBuilder
impl Send for LogConfigBuilder
impl Sync for LogConfigBuilder
impl Unpin for LogConfigBuilder
impl UnsafeUnpin for LogConfigBuilder
impl UnwindSafe for LogConfigBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more