prettylogger/
getters.rs

1use crate::{
2    Logger,
3    config::LogStruct,
4};
5
6impl Logger {
7    /// Returns a reference to the custom log buffer.
8    pub fn log_buffer(&self) -> &Vec<LogStruct> {
9        return &self.custom_log_buffer;
10    }
11
12    /// Returns the number of logs printed since the struct was instantiated.
13    pub fn log_count(&self) -> &u128 {
14        return &self.log_count;
15    }
16}