[−][src]Struct syslog::Logger
Main logging structure
Implementations
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]
F: LogFormat<T>,
pub fn alert<T>(&mut self, message: T) -> Result<()> where
F: LogFormat<T>,
[src]
F: LogFormat<T>,
pub fn crit<T>(&mut self, message: T) -> Result<()> where
F: LogFormat<T>,
[src]
F: LogFormat<T>,
pub fn err<T>(&mut self, message: T) -> Result<()> where
F: LogFormat<T>,
[src]
F: LogFormat<T>,
pub fn warning<T>(&mut self, message: T) -> Result<()> where
F: LogFormat<T>,
[src]
F: LogFormat<T>,
pub fn notice<T>(&mut self, message: T) -> Result<()> where
F: LogFormat<T>,
[src]
F: LogFormat<T>,
pub fn info<T>(&mut self, message: T) -> Result<()> where
F: LogFormat<T>,
[src]
F: LogFormat<T>,
pub fn debug<T>(&mut self, message: T) -> Result<()> where
F: LogFormat<T>,
[src]
F: LogFormat<T>,
Auto Trait Implementations
impl<Backend, Formatter> RefUnwindSafe for Logger<Backend, Formatter> where
Backend: RefUnwindSafe,
Formatter: RefUnwindSafe,
Backend: RefUnwindSafe,
Formatter: RefUnwindSafe,
impl<Backend, Formatter> Send for Logger<Backend, Formatter> where
Backend: Send,
Formatter: Send,
Backend: Send,
Formatter: Send,
impl<Backend, Formatter> Sync for Logger<Backend, Formatter> where
Backend: Sync,
Formatter: Sync,
Backend: Sync,
Formatter: Sync,
impl<Backend, Formatter> Unpin for Logger<Backend, Formatter> where
Backend: Unpin,
Formatter: Unpin,
Backend: Unpin,
Formatter: Unpin,
impl<Backend, Formatter> UnwindSafe for Logger<Backend, Formatter> where
Backend: UnwindSafe,
Formatter: UnwindSafe,
Backend: UnwindSafe,
Formatter: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,