Syntax
void LOG_PRINTF_T(
bool bPrint,
const char *fmt,
...
);
Parameters
- bPrint
- [in] Specify true if you want to output a log message, and specify false otherwise.
- fmt
- [in] Specify the format string.
Return value
None
Remarks
The date and time are added to the log message and output.To store the output of this function in the log buffer, ZONE_APP must be enabled in the Debug zone of Log settings. In the default state, no log is output even if this function is called.
This function is defined by a macro.
Note:
The LOG_PRINTF_T function has a much slower response time than the LOG_PRINTF function, so frequent calls can significantly reduce the responsiveness of your application. Normally, use the LOG_PRINTF function.Requirements
- Header
- logapi.h
- Library
- libSTARTUPOPH5000.a
Sample
LOG_PRINTF_T(true, "[MAIN] buffer=0x%x", p);
Output
2020/10/22 03:02:31 [MAIN] buffer=0x861086c
Last updated: 2020/10/27