[asterisk-dev] [Code Review] Add ability for modules to dynamically register/unregister logger levels

Kevin Fleming kpfleming at digium.com
Tue May 5 09:20:44 CDT 2009


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.digium.com/r/244/
-----------------------------------------------------------

(Updated 2009-05-05 09:20:44.556149)


Review request for Asterisk Developers.


Changes
-------

New version of patch that eliminates the need for flushing messages queued for the background thread by copying the additional data necessary into the structure that is passed to that thread.


Summary
-------

This patch adds the ability for modules to dynamically create logger levels for their own use; these are named levels just like the built-in levels, and can be directed to any destination that the logger can send any level to, by including their names in logger.conf.


Diffs (updated)
-----

  /trunk/include/asterisk/logger.h 192370 
  /trunk/main/logger.c 192370 
  /trunk/tests/test_logger.c PRE-CREATION 

Diff: http://reviewboard.digium.com/r/244/diff


Testing
-------

Tested using included test_logger module.


Thanks,

Kevin




More information about the asterisk-dev mailing list