This function registers a logging callback that will be used to handle the wolfSSL log message. By default, if the system supports it fprintf() to stderr is used but by using this function anything can be done by the user.
2 // Logging callback prototype
3 void MyLoggingCallback(const int logLevel, const char* const logMessage);
4 // Register the custom logging callback with wolfSSL
5 ret = wolfSSL_SetLoggingCb(MyLoggingCallback);
7 // failed to set logging callback
9 void MyLoggingCallback(const int logLevel, const char* const logMessage)
11 // custom logging function