donnie4w / tklog

lightweight and efficient rust structured log library with support for log levels, file segmentation, compressed archiving
https://crates.io/crates/tklog
Apache License 2.0
80 stars 5 forks source link

suggest add space or '.' before format with Format::Microseconds #14

Closed bluebug closed 1 hour ago

bluebug commented 22 hours ago

suggest add space or '.' before tss.2 like before tss.1 https://github.com/donnie4w/tklog/blob/bcfe8323e641eac215a9473b42313aaf88d79397/src/lib.rs#L471

        if !tss.1.is_empty() {
            if !time.is_empty() {
                time.push(' ');
            }
            time.push_str(tss.1.as_str());
        }

        if !tss.2.is_empty() {
+            if !time.is_empty() {
+               time.push(' ');
+            }
            time.push_str(tss.2.as_str());
        }
donnie4w commented 22 hours ago

@bluebug Ok, thanks, there is a dot missing, I will correct it as soon as possible

bluebug commented 1 hour ago

v0.2.7 solved 👍