fn create_tag(&self, record: &log::Record) -> String {
        let level = record.level();
        let level_text = if self.include_level {
            level.to_string()
        } else {
            String::new()
        };

        let module_path_text = if self.include_module_path {
            let pth = record.module_path().unwrap_or(MODULE_PATH_UNKNOWN);
            if self.include_level {
                format!(" [{}]", pth)
            } else {
                pth.into()
            }
        } else {
            String::new()
        };
        let line_text = if self.include_line_numbers {
            if let Some(l) = record.line() {
                format!(" (line {})", l)
            } else {
                String::new()
            }
        } else {
            String::new()
        };
        let mut tag = format!("{}{}{}", level_text, module_path_text, line_text);
        if self.colors {
            tag = self.select_color(&level).paint(tag).to_string();
        }
        tag
    }
/// Creates the tag portion of the log statement based on the configuration.
///
/// The tag portion is the of the log statement is the text to the left of the separator, while
/// the text to the right of the separator is the message.
Creates the tag portion of the log statement based on the configuration.
The tag portion is the of the log statement is the text to the left of the separator, while
the text to the right of the separator is the message.
Creates the tag portion of the log statement based on the configuration . The tag portion is the of the log statement is the text to the left of the separator while the text to the right of the separator is the message .
fn create_tag(&self, record: &log::Record) -> String {
        let level = record.level();
        let level_text = if self.include_level {
            level.to_string()
        } else {
            String::new()
        };
        let module_path_text = if self.include_module_path {
            let pth = record.module_path().unwrap_or(MODULE_PATH_UNKNOWN);
            if self.include_level {
                format!(" [{}]", pth)
            } else {
                pth.into()
            }
        } else {
            String::new()
        };
        let line_text = if self.include_line_numbers {
            if let Some(l) = record.line() {
                format!(" (line {})", l)
            } else {
                String::new()
            }
        } else {
            String::new()
        };
        let mut tag = format!("{}{}{}", level_text, module_path_text, line_text);
        if self.colors {
            tag = self.select_color(&level).paint(tag).to_string();
        }
        tag
    }
fn create_tag ( & self , record : & log :: Record ) -> String { let level = record . level ( ) ; let level_text = if self . include_level { level . to_string ( ) } else { String :: new ( ) } ; let module_path_text = if self . include_module_path { let pth = record . module_path ( ) . unwrap_or ( MODULE_PATH_UNKNOWN ) ; if self . include_level { format ! ( " " pth ) } else { pth . into ( ) } } else { String :: new ( ) } ; let line_text = if self . include_line_numbers { if let Some ( l ) = record . line ( ) { format ! ( " " l ) } else { String :: new ( ) } } else { String :: new ( ) } ; let mut tag = format ! ( " " level_text module_path_text line_text ) ; if self . colors { tag = self . select_color ( & level ) . paint ( tag ) . to_string ( ) ; } tag }
Creates the tag portion of the log statement based on the configuration.
Creates the tag portion of the log statement based on the configuration .
&self
record
&log::Record