/// Log a mark to the desktop viewer.
///
/// Marks are important points that you can jump to directly in the desktop viewer. Message is
/// optional, if null or empty it will be replaced with the current date / time
///
/// * `message`	optional message
///
Log a mark to the desktop viewer.
Marks are important points that you can jump to directly in the desktop viewer. Message is
optional, if null or empty it will be replaced with the current date / time

`message`    optional message
Log a mark to the desktop viewer . Marks are important points that you can jump to directly in the desktop viewer . Message is optional if null or empty it will be replaced with the current date / time ` message ` optional message
pub fn log_mark(&self, message:Option<&str>) {
        use chrono ;
        if DEBUG_LOGGER {
            info!(target:"NSLogger", "entering log_mark") ;
        }
        self.start_logging_thread_if_needed() ;
        if !self.shared_state.lock().unwrap().is_handler_running {
            if DEBUG_LOGGER {
                info!(target:"NSLogger", "Early return") ;
            }
            return ;
        }
        let mut log_message = LogMessage::with_header(LogMessageType::Mark,
                                                      self.shared_state.lock().unwrap().get_and_increment_sequence_number(),
                                                      None,
                                                      None,
                                                      None,
                                                      None,
                                                      Level::Error) ;
        let mark_message = match message {
            Some(inner) => inner.to_string(),
            None => {
                let time_now = chrono::Utc::now() ;
                time_now.format("%b %-d, %-I:%M:%S").to_string()
            }
        } ;
        log_message.add_string(MessagePartKey::Message, &mark_message) ;
        self.send_and_flush_if_required(log_message) ;
        if DEBUG_LOGGER {
            info!(target:"NSLogger", "leaving log_mark") ;
        }
    }
pub fn log_mark ( & self , message : Option < & str > ) { use chrono ; if DEBUG_LOGGER { info ! ( target " " " " ) ; } self . start_logging_thread_if_needed ( ) ; if ! self . shared_state . lock ( ) . unwrap ( ) . is_handler_running { if DEBUG_LOGGER { info ! ( target " " " " ) ; } return ; } let mut log_message = LogMessage :: with_header ( LogMessageType :: Mark , self . shared_state . lock ( ) . unwrap ( ) . get_and_increment_sequence_number ( ) , None , None , None , None , Level :: Error ) ; let mark_message = match message { Some ( inner ) => inner . to_string ( ) , None => { let time_now = chrono :: Utc :: now ( ) ; time_now . format ( " " ) . to_string ( ) } } ; log_message . add_string ( MessagePartKey :: Message , & mark_message ) ; self . send_and_flush_if_required ( log_message ) ; if DEBUG_LOGGER { info ! ( target " " " " ) ; } }
Log a mark to the desktop viewer.
Log a mark to the desktop viewer .
&self
message
Option<&str>