[][src]Struct syslog::Logger

pub struct Logger<Backend: Write, Formatter> { /* fields omitted */ }

Main logging structure

Methods

impl<W: Write, F> Logger<W, F>[src]

pub fn new(backend: W, formatter: F) -> Self[src]

pub fn emerg<T>(&mut self, message: T) -> Result<()> where
    F: LogFormat<T>, 
[src]

pub fn alert<T>(&mut self, message: T) -> Result<()> where
    F: LogFormat<T>, 
[src]

pub fn crit<T>(&mut self, message: T) -> Result<()> where
    F: LogFormat<T>, 
[src]

pub fn err<T>(&mut self, message: T) -> Result<()> where
    F: LogFormat<T>, 
[src]

pub fn warning<T>(&mut self, message: T) -> Result<()> where
    F: LogFormat<T>, 
[src]

pub fn notice<T>(&mut self, message: T) -> Result<()> where
    F: LogFormat<T>, 
[src]

pub fn info<T>(&mut self, message: T) -> Result<()> where
    F: LogFormat<T>, 
[src]

pub fn debug<T>(&mut self, message: T) -> Result<()> where
    F: LogFormat<T>, 
[src]

Auto Trait Implementations

impl<Backend, Formatter> Send for Logger<Backend, Formatter> where
    Backend: Send,
    Formatter: Send

impl<Backend, Formatter> Sync for Logger<Backend, Formatter> where
    Backend: Sync,
    Formatter: Sync

impl<Backend, Formatter> Unpin for Logger<Backend, Formatter> where
    Backend: Unpin,
    Formatter: Unpin

impl<Backend, Formatter> UnwindSafe for Logger<Backend, Formatter> where
    Backend: UnwindSafe,
    Formatter: UnwindSafe

impl<Backend, Formatter> RefUnwindSafe for Logger<Backend, Formatter> where
    Backend: RefUnwindSafe,
    Formatter: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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