[][src]Trait syslog::LogFormat

pub trait LogFormat<T> {
    fn format<W: Write>(
        &self,
        w: &mut W,
        severity: Severity,
        message: T
    ) -> Result<()>; fn emerg<W: Write>(&mut self, w: &mut W, message: T) -> Result<()> { ... }
fn alert<W: Write>(&mut self, w: &mut W, message: T) -> Result<()> { ... }
fn crit<W: Write>(&mut self, w: &mut W, message: T) -> Result<()> { ... }
fn err<W: Write>(&mut self, w: &mut W, message: T) -> Result<()> { ... }
fn warning<W: Write>(&mut self, w: &mut W, message: T) -> Result<()> { ... }
fn notice<W: Write>(&mut self, w: &mut W, message: T) -> Result<()> { ... }
fn info<W: Write>(&mut self, w: &mut W, message: T) -> Result<()> { ... }
fn debug<W: Write>(&mut self, w: &mut W, message: T) -> Result<()> { ... } }

Required methods

fn format<W: Write>(
    &self,
    w: &mut W,
    severity: Severity,
    message: T
) -> Result<()>

Loading content...

Provided methods

fn emerg<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>

fn alert<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>

fn crit<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>

fn err<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>

fn warning<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>

fn notice<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>

fn info<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>

fn debug<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>

Loading content...

Implementors

impl<T: Display> LogFormat<(i32, HashMap<String, HashMap<String, String, RandomState>, RandomState>, T)> for Formatter5424[src]

impl<T: Display> LogFormat<T> for Formatter3164[src]

Loading content...