Rate This Document
Findability
Accuracy
Completeness
Readability

SetExternalLogFunc

Function

Set the function for printing external logs.

Prototype

1
int SetExternalLogFunc(ExternalLog logFunc);

Do not print sensitive and private data in logs to avoid outputting the tensors used for calculation and the values of key and value in the Find table.

Parameters

Parameter

Input/Output

Description

Constraint

logFunc

Input

A function pointer parameter, which returns void and takes an int (log level) and a char* (log message) as input parameters.

logFunc is not empty. The user inputs logFunc and ensures its functionality and security.