[Vortex] Patch: Client-configurable logging callback

Francis Brosnan Blazquez francis at aspl.es
Thu Dec 20 13:25:19 CET 2007


Hi Jens,

> This patch adds a VortexLogHandler callback that the client can  
> configure to take control of logging messages. If non-NULL, the  
> callback is invoked instead of the printf calls that vortex would  
> normally make.
> 
> This allows the client to print Vortex log messages through its own  
> logging facilities instead of stdout. The client can also filter the  
> messages by domain and level -- for instance, it could suppress  
> 'debug'-level messages, or only print messages relating to TLS. (I
> was  
> starting to add such filtering features to the Vortex API, but then  
> realized it would be a lot easier and more general to let the client  
> install its own callback.)

Certainly it is a more general approach. 

> This patch is based on SVN revision 3194, which was TOT as of an
> hour  
> or so ago.

Good Jens. The patch is now applied, including some documentation for
vortex_log_set_handler and vortex_log_get_handler (and minor indentation
changes). 

Thanks for reporting and improving the API!

> --Jens
> 
-- 
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.




More information about the Vortex mailing list