Macro mt_logger::mt_count[][src]

macro_rules! mt_count {
    () => { ... };
}
Expand description

Returns a count of recorded log messages.

NOTE: This may not (and likely is not, at any given time), the same as the number of times mt_log! has been called. The message count is only incremented after the logging thread has successfully written a message to the active stream(s). Due to the nature of multithreading, this may happen at any time or never.

If a count of all successfully sent and recorded messages is required, mt_flush! must be called before mt_count!.

Examples

Get count of recorded messages.

let msg_count = mt_count!();