fn create_prefix(&self, record: &Record) -> String {
        let ins_id = match self.instance_id.read() {
            Ok(guard) => guard.to_string(),
            Err(poisoned) => poisoned.into_inner().to_string(),
        };

        let level = if self.show_level() {
            record.level().to_string()
        } else {
            "".to_string()
        };

        let pth = if self.show_file_path() {
            record.file().unwrap_or("unknown").to_string()
        } else {
            "".to_string()
        };

        let line = if self.show_line_numbers() {
            if let Some(ln) = record.line() {
                ln.to_string()
            } else {
                "".to_string()
            }
        } else {
            "".to_string()
        };

        let mut prefix: Vec<String> = vec![ins_id, level, pth, line];
        prefix.retain(|i| !i.is_empty());
        format!(" [{}]", prefix.join(IN_PREFIX_SEPARATOR))
    }
/// Creates the first portion (to the left of the separator)
/// of the log statement based on the logger settings.
Creates the first portion (to the left of the separator)
of the log statement based on the logger settings.
Creates the first portion ( to the left of the separator ) of the log statement based on the logger settings .
fn create_prefix(&self, record: &Record) -> String {
        let ins_id = match self.instance_id.read() {
            Ok(guard) => guard.to_string(),
            Err(poisoned) => poisoned.into_inner().to_string(),
        };
        let level = if self.show_level() {
            record.level().to_string()
        } else {
            "".to_string()
        };
        let pth = if self.show_file_path() {
            record.file().unwrap_or("unknown").to_string()
        } else {
            "".to_string()
        };
        let line = if self.show_line_numbers() {
            if let Some(ln) = record.line() {
                ln.to_string()
            } else {
                "".to_string()
            }
        } else {
            "".to_string()
        };
        let mut prefix: Vec<String> = vec![ins_id, level, pth, line];
        prefix.retain(|i| !i.is_empty());
        format!(" [{}]", prefix.join(IN_PREFIX_SEPARATOR))
    }
fn create_prefix ( & self , record : & Record ) -> String { let ins_id = match self . instance_id . read ( ) { Ok ( guard ) => guard . to_string ( ) , Err ( poisoned ) => poisoned . into_inner ( ) . to_string ( ) , } ; let level = if self . show_level ( ) { record . level ( ) . to_string ( ) } else { " " . to_string ( ) } ; let pth = if self . show_file_path ( ) { record . file ( ) . unwrap_or ( " " ) . to_string ( ) } else { " " . to_string ( ) } ; let line = if self . show_line_numbers ( ) { if let Some ( ln ) = record . line ( ) { ln . to_string ( ) } else { " " . to_string ( ) } } else { " " . to_string ( ) } ; let mut prefix : Vec < String > = vec ! [ ins_id level pth line ] ; prefix . retain ( | i | ! i . is_empty ( ) ) ; format ! ( " " prefix join ( IN_PREFIX_SEPARATOR ) ) }
Creates the first portion (to the left of the separator)
of the log statement based on the logger settings.
Creates the first portion ( to the left of the separator ) of the log statement based on the logger settings .
&self
record
&Record