Description
The CPXsetlogfile() routine modifies the log file to which messages from all four CPLEX-defined channels are written. Note that a call to CPXsetlogfile() is equivalent to directing output from the cpxresults, cpxwarning, cpxerror and cpxlog message channels to a single file.Return Value
The routine returns a zero on success, and a nonzero if an error occurs.Synopsis
int CPXsetlogfile (CPXENVptr env,
CPXFILEptr logfile_p);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXFILEptr logfile_pA CPXFILEptr for the log file. This routine will set l
ogfile_p to be the file pointer for the current log file. A NULL pointer may be passed if no log file is desired. NULL is the default value. Before calling this routine, obtain this pointer with a call to CPXfopen().
status = CPXsetlogfile (env, logfile);