BALTECH SDK wrapper functions reference

§ brp_set_log_path()

BRP_LIB brp_errcode brp_set_log_path ( brp_protocol  protocol,
const char *  path 
)

Sets a custom log file path.

If the path ends with '/' or '\', it is treated as a directory and the default filename schema ({interface}-{instance}.html) will be used. Otherwise, the path is used as the full file path.

Setting path to NULL restores the default behavior.

If a log file is currently open, it will be closed and the new path will be used for the next log entry.

Parameters
protocolA protocol stack containing a monitor protocol layer.
pathThe custom log file path, or NULL for default behavior.
Returns
BRP_OK on success, or an error code on failure.