Open LukasKalbertodt opened 4 years ago
I like, it slaps, I use it to color stuff in my Gopher client that I'm currently working on. Haven't tried on Windows, but Linux experience is neat.
Could the color and other styles be specified by argument? For example,
bunt::println!("{$*}error:{/$}", Color::Red, ty);
In that case I could calculate the color at runtime.
@Berrysoft That's an interesting idea! I opened #21. Not sure if I can start working on it anytime soon, though.
Thanks for the great library!
I'm using your library for one of my projects, but I wanted leveled logging. So I cobbled together this crate, which provides some convenience macros (error!
, info!
, debug!
, etc.) over bunt::writeln!
.
Not really sure if this functionality is appropriate to make a PR for, since it's not a proper log
implementation and the level/output target configuration uses a global. But it's convenient, for what it's worth. Hopefully someone else looking for something similar might find it useful.
@Dophin2009 Thanks for letting me know. I think this functionality should certainly live outside of bunt
itself, but as a standalone crate, it's great!
Do you have any opinions, complaints, suggestions, ideas, ... about this library or its syntax? Let me know :)