pub fn color(mut self, l: &log::Level, c: Colour) -> Self {
        match *l {
            log::Level::Error => self.error.color = c,
            log::Level::Warn => self.warn.color = c,
            log::Level::Info => self.info.color = c,
            log::Level::Debug => self.debug.color = c,
            log::Level::Trace => self.trace.color = c,
        }
        self
    }
/// Sets the color for a level.
///
/// # Example
///
/// ```
/// #[macro_use] extern crate log;
/// extern crate loggerv;
/// extern crate ansi_term;
///
/// use log::Level;
/// use ansi_term::Colour;
///
/// fn main() {
///     loggerv::Logger::new()
///         .color(&Level::Error, Colour::Fixed(7))
///         .init()
///         .unwrap();
///
///     error!("This is printed in light grey instead of bright red");
/// }
/// ```
Sets the color for a level.
Sets the color for a level .
pub fn color(mut self, l: &log::Level, c: Colour) -> Self {
        match *l {
            log::Level::Error => self.error.color = c,
            log::Level::Warn => self.warn.color = c,
            log::Level::Info => self.info.color = c,
            log::Level::Debug => self.debug.color = c,
            log::Level::Trace => self.trace.color = c,
        }
        self
    }
pub fn color ( mut self , l : & log :: Level , c : Colour ) -> Self { match * l { log :: Level :: Error => self . error . color = c , log :: Level :: Warn => self . warn . color = c , log :: Level :: Info => self . info . color = c , log :: Level :: Debug => self . debug . color = c , log :: Level :: Trace => self . trace . color = c , } self }
Sets the color for a level.
Sets the color for a level .
mut self
l
&log::Level
c
Colour
example
None
[macro_use] extern crate log;
extern crate loggerv;
extern crate ansi_term.

use log::Level;
use ansi_term::Colour.

fn main() {
loggerv::Logger::new()
.color(&Level::Error, Colour::Fixed(7))
.init()
.unwrap().

error!("This is printed in light grey instead of bright red");
}
```
extern crate loggerv ; extern crate ansi_term . use log :: Level ; use ansi_term :: Colour . fn main () { loggerv :: Logger :: new () . color ( &Level :: Error Colour :: Fixed ( 7 )) . init () . unwrap () . error! ( " This is printed in light grey instead of bright red " ) ; } ` ` `