From 7db1833cbbe3b489b53f258093e5f82489a84e36 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Tue, 9 Jul 2024 19:50:12 +0200 Subject: [PATCH] feat(log): apperently, show time or not was also no option??? --- members/libpt-log/src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/members/libpt-log/src/lib.rs b/members/libpt-log/src/lib.rs index e307ff7..6783177 100644 --- a/members/libpt-log/src/lib.rs +++ b/members/libpt-log/src/lib.rs @@ -267,6 +267,15 @@ impl LoggerBuilder { self } + /// when making a log, display the time of the message + /// + /// Default: true + #[must_use] + pub const fn display_time(mut self, show_time: bool) -> Self { + self.show_time = show_time; + self + } + /// when making a log, display the log level of the message /// /// Default: true