clibs / debug

Conditional debug logging for C
MIT License
17 stars 2 forks source link

Feature request: color support #9

Open stephenmathieson opened 10 years ago

stephenmathieson commented 10 years ago

It would make DEBUG=* legible with many debuggers enabled.

See the js impl for examples

jwerle commented 10 years ago

I'd like to see this too. I think it would be nice to enable colors at compile time. Something like:

    $(CC) $(CFLAGS) $(OBJS) -DDEBUG_COLORS
stephenmathieson commented 10 years ago

I'd much prefer a runtime toggle:

$ DEBUG_COLORS=1 DEBUG=foo,bar ./app

On Mon, Jun 23, 2014 at 11:24 AM, Joseph Werle notifications@github.com wrote:

I'd like to see this too. I think it would be nice to enable colors at compile time. Something like:

$(CC) $(CFLAGS) $(OBJS) -DDEBUG_COLORS

— Reply to this email directly or view it on GitHub https://github.com/clibs/debug/issues/9#issuecomment-46859914.

jwerle commented 10 years ago

Maybe both? Maybe someone would want debug colors by default and runtime environment variables could be used to switch on/off