MLDisableLoggingStream (C Function)
MLDisableLoggingStream has been replaced by WSDisableLoggingStream.
int MLDisableLoggingStream( MLINK l )
disables logging of the stream contents for the MathLink connection specified by l.
Details
- MLDisableLoggingStream() and MLEnableLoggingStream() act as a toggle API mechanism for enabling and disabling logging on a link.
- MLDisableLoggingStream() returns 0 on error and a nonzero value on success.
- MLDisableLoggingStream() is declared in the MathLink header file mathlink.h.
Examples
Basic Examples (1)
#include "mathlink.h"
int main(int argc, char **argv)
{
MLENV env;
MLINK link;
int error;
int apiResult;
env = MLInitialize((MLEnvironmentParameter)0);
if(env == (MLENV)0)
{ /* Unable to create MathLink environment object */ }
link = MLOpenArgcArgv(env, argc, argv, &error)l;
if(link == (MLINK)0 || error != MLEOK)
{ /* Unable to create link object */ }
MLActivate(link);
/* ... */
apiResult = MLLogStreamToFile(link, "/path/to/logFile.log");
if(! apiResult)
{ /* unable to log to logFile.log */ }
/* ... */
apiResult = MLDisableLoggingStream(link);
if(! apiResult)
{ /* error while stopping logging to logFile.log */ }
/* ... */
apiResult = MLStopLoggingStream(link);
{ /* error while turning off logging */ }
MLClose(link);
MLDeinitialize(env);
}