[asterisk-dev] logging improvements

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed Jun 6 18:25:01 MST 2007

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.


More information about the asterisk-dev mailing list