neat_log_file¶
Sets the name of the log file.
Syntax¶
uint8_t neat_log_file(struct neat_ctx *ctx,
const char* file_name)
Parameters¶
- ctx: Pointer to a NEAT context.
- file_name: Name of the NEAT logfile. If set to
NULL
, NEAT writes the log output tostderr
.
Return values¶
- RETVAL_SUCCESS: success
- RETVAL_FAILURE: failure
Examples¶
neat_log_file(ctx, "disaster.log");