NO FRAMES

CPXsetlogfile

int CPXPUBLIC CPXsetlogfile(CPXENVptr env, CPXFILEptr lfile)
Definition file: cplex.h
Include files: cplex.h

The routine CPXsetlogfile modifies the log file to which messages from all four CPLEX-defined channels are written.

Note
A call to CPXsetlogfile is equivalent to directing output from the cpxresults, cpxwarning, cpxerror and cpxlog message channels to a single file.

Example

 status = CPXsetlogfile (env, logfile);
 

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lfile

A CPXFILEptr to the log file. This routine sets lfile 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.

Returns:

The routine returns zero on success and nonzero if an error occurs.