1 (edited by eof 2011-04-11 12:12:24)

Topic: Improved logging code.

I've added some functionality to wolfSSL that allows the developer
to hook in their own log interceptor function.

To facilitate this I moved some code from cyassl_int.h & cyassl_int.c
into the new files logging.h & logging.c
I'm not sure whether these are the most suitable names for the new files ?

By default the behaviour will remain as before, however if an interceptor
is registered, log messages will  instead be routed there.

The other change was the addition of an enum[CYA_Log_Levels]
to map log levels. This is useful for filtering out uninteresting messages;
the case where a developer only cares about errors for example.

Eoin ó Fearghail, Agora Games.

Post's attachments

CyaLoggingPatch.diff 6.04 kb, 2 downloads since 2011-04-11 

You don't have the permssions to download the attachments of this post.

Share

Re: Improved logging code.

Thanks eof!  We'll add these this week to the main branch.

Share