[][src]Trait edwardium_logger::Target

pub trait Target {
    fn level(&self) -> Level;
fn ignore(&self, record: &Record) -> bool;
fn write(&self, string: &str) -> Result<()>;
fn flush(&self) -> Result<()>; }

Represents a log target.

Required methods

fn level(&self) -> Level

Returns the max level this target logs.

fn ignore(&self, record: &Record) -> bool

Whether the target wants to ignore given record.

fn write(&self, string: &str) -> Result<()>

Writes string to the target output. This doesn't check the ignore list.

fn flush(&self) -> Result<()>

Flushes target output.

Loading content...

Implementors

impl Target for FileTarget[src]

impl Target for StdoutTarget[src]

Loading content...