Struct flexi_logger::writers::SyslogWriter
source · pub struct SyslogWriter { /* private fields */ }
Available on crate feature
syslog_writer
only.Expand description
Implementations§
source§impl SyslogWriter
impl SyslogWriter
sourcepub fn builder(
syslog: SyslogConnection,
syslog_line_header: SyslogLineHeader,
syslog_facility: SyslogFacility,
) -> SyslogWriterBuilder
pub fn builder( syslog: SyslogConnection, syslog_line_header: SyslogLineHeader, syslog_facility: SyslogFacility, ) -> SyslogWriterBuilder
Instantiate the builder for the SysLogWriter
.
Trait Implementations§
source§impl LogWriter for SyslogWriter
impl LogWriter for SyslogWriter
source§fn write(&self, now: &mut DeferredNow, record: &Record<'_>) -> IoResult<()>
fn write(&self, now: &mut DeferredNow, record: &Record<'_>) -> IoResult<()>
Writes out a log line. Read more
source§fn max_log_level(&self) -> LevelFilter
fn max_log_level(&self) -> LevelFilter
Provides the maximum log level that is to be written.
source§fn format(&mut self, format: FormatFunction)
fn format(&mut self, format: FormatFunction)
Sets the format function. Read more
source§fn reopen_output(&self) -> Result<(), FlexiLoggerError>
fn reopen_output(&self) -> Result<(), FlexiLoggerError>
Re-open the current output, if meaningful. Read more
Auto Trait Implementations§
impl !Freeze for SyslogWriter
impl RefUnwindSafe for SyslogWriter
impl Send for SyslogWriter
impl Sync for SyslogWriter
impl Unpin for SyslogWriter
impl UnwindSafe for SyslogWriter
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