Previous Page: CPXsetintparamFirst PageNext Page: CPXsetlpcallbackfunc

CPXsetlogfile


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);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

CPXFILEptr logfile_p
A CPXFILEptr for the log file. This routine will set logfile_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().

Example

status = CPXsetlogfile (env, logfile);
Previous Page: CPXsetintparamFirst PageNext Page: CPXsetlpcallbackfunc