7 releases (stable)

1.1.3 Dec 23, 2023
1.1.2 Oct 23, 2023
1.1.0 Aug 19, 2023
0.1.1 Jun 15, 2023

#406 in Debugging

Download history 3/week @ 2024-06-09 4/week @ 2024-06-16 1/week @ 2024-06-23 32/week @ 2024-07-28 1/week @ 2024-08-04 12/week @ 2024-08-25 3/week @ 2024-09-01 2/week @ 2024-09-08 21/week @ 2024-09-15 47/week @ 2024-09-22

74 downloads per month

Apache-2.0

10KB
113 lines

twink

silly litl logger for kitties

status-badge crates.io crates.io

  /l、
(゚、 。 
  l、 ~ヽ
  じしf_,)ノ

usage

[dependencies]
twink = "1.1.0"
twink::purr!("good job!!!")

lso checkout the example

timestamps

to print timestamps next to logs enable the feature flag corresponding to your format preference

12 hour (am/pm)

twink = { version = "1.1.0", features = ["12-hour"] }

24 hour

twink = { version = "1.1.0", features = ["24-hour"] }

log

twink can also be used as an interface for the log crate

twink = { version = "1.1.0", features = ["log"] }
twink::log::setup();
log::info!("hiya");

(setup_level may be used instead to set a filter other than Info)

license

Apache-2.0

Dependencies

~0.3–1MB
~23K SLoC