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

#412 in Debugging

49 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
~22K SLoC