[asterisk-dev] logging improvements

Russell Bryant russell at digium.com
Thu Jun 7 09:36:51 MST 2007


Tilghman Lesher wrote:
> On Wednesday 06 June 2007, Dmitry Andrianov wrote:
>> It is possible to workaround item 2 above by also providing macros like
>> ast_log_debug, ast_log_error etc and slowly migrating the code from
>> generic ast_log to more specific ast_log_xxx. Besides being a easier to
>> optimize it is just better looking code. Better to me of course :=)
>> People are different...
> 
> Given that LOG_DEBUG is the only level for which we currently conditionally
> send logging messages (all of the others are absolute), I believe that
> ast_debug(debuglevel, format, args) is the only macro that we need to add.
> The others can remain in their current ast_log(level, format, args) macro.
> 

Agreed.  I think this would be a reasonable approach to take.

-- 
Russell Bryant
Software Engineer
Digium, Inc.


More information about the asterisk-dev mailing list