Re: [Yxa-devel] logger:log/3

2007-01-08 Thread Serge Aleynikov
Fredrik Thulin wrote: > In general, I think that LOG_DEBUG and similar macros that evaluate code > are unappealing because it makes it harder to understand the code, but I > am also of the opinion that aesthetics in code are not always to be > considered paramount. Generally I agree that macros

Re: [Yxa-devel] logger:log/3

2007-01-08 Thread Fredrik Thulin
In general, I think that LOG_DEBUG and similar macros that evaluate code are unappealing because it makes it harder to understand the code, but I am also of the opinion that aesthetics in code are not always to be considered paramount. Earlier profiling has indicated that debug logging in YXA a

[Yxa-devel] logger:log/3

2007-01-05 Thread Serge Aleynikov
I'd like to request the following logger feature. a. Replace the logger:log/3 call by macros: -define(LOG_DEBUG(A, B), logger:log(debug, A, B)). -define(LOG_ERROR(A, B), logger:log(error, A, B)). -define(LOG_NORMAL(A, B), logger:log(normal, A, B)). This way it'll be easy to exclude logging of