WD User Log Registration Interface
1 | typedef void (*wd_log)(const char *format, ...); |
Prototype |
int wd_register_log(wd_log log); |
|---|---|
Function |
Register private log functions. |
Input Description |
log: log recording function |
Output Description |
log_out: pointer to the function for recording global logs |
Return Value Description |
0: success Others: failure |
Usage Instruction |
|
Precautions |
A valid user log function can be registered only once. If the user log function is registered for multiple times, other will registration fail. |
Parent topic: WD Interface Description