| FANN_EXTERNAL void FANN_API fann_set_error_log( | struct | fann_error | * | errdat, | | | FILE | * | log_file | ) |
|
Change where errors are logged to. Both struct fann and <struct fann_data> can be casted to struct fann_error, so this function can be used to set either of these.
If log_file is NULL, no errors will be printed.
If errdata is NULL, the default log will be set. The default log is the log used when creating struct fann and <struct fann_data>. This default log will also be the default for all new structs that are created.
The default behavior is to log them to stderr.
See also
struct fann_error
This function appears in FANN >= 1.1.0.