jeaye / q3

A Quake 3 like game with voxelized, destructible maps; written in Rust
BSD 3-Clause "New" or "Revised" License
500 stars 25 forks source link

A proper logger #28

Closed jeaye closed 11 years ago

jeaye commented 11 years ago

With colors, module names, line numbers, etc.

jeaye commented 11 years ago

Thread safety?

evincarofautumn commented 11 years ago

Is it possible to make log_* variadic and take a fmt!-style format string? You seem to be doing log_info(fmt!(...)) (and kin) quite a bit.

jeaye commented 11 years ago

It already is! :) See https://github.com/Jeaye/q3/blob/master/src/main.rs#L179 or similar.

evincarofautumn commented 11 years ago

Oh, you’re one step ahead of me. I was referring to these:

jeaye commented 11 years ago

Those are... an artifact of my inconsistencies. >.< Thanks for the tip; I'll sleep better when they've been cleaned up.

jeaye commented 11 years ago

Thread safety is not a problem, thanks to TLS.