[][src]Struct flexi_logger::writers::SyslogWriter

pub struct SyslogWriter { /* fields omitted */ }

A configurable LogWriter implementation that writes log messages to the syslog (see RFC 5424).

See the module description for guidance how to use additional log writers.

Methods

impl SyslogWriter[src]

pub fn try_new(
    facility: SyslogFacility,
    determine_severity: Option<LevelToSyslogSeverity>,
    message_id: String,
    syslog: SyslogConnector
) -> IoResult<Box<SyslogWriter>>
[src]

Returns a configured boxed instance.

Parameters

facility: An value representing a valid syslog facility value according to RFC 5424.

determine_severity: (optional) A function that maps the rust log levels to the syslog severities. If None is given, a trivial default mapping is used, which should be good enough in most cases.

message_id: The value being used as syslog's MSGID, which should identify the type of message. The value itself is a string without further semantics. It is intended for filtering messages on a relay or collector.

syslog: A SyslogConnector.

Trait Implementations

impl LogWriter for SyslogWriter[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.