tplogprintubf — Print the UBF buffer to current logger
#include <atmi.h>
void tplogprintubf(int lev, char *title, UBFH *p_ub);
For XATMI client link with -latmiclt -latmi -lubf -lnstd -lpthread -lrt -lm
For XATMI server link with -latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm
Function dumps the UBF bufer conenet in field/value format to current logger. The lev is debug level from which to perform logging. title is title of the dump, p_ub is pointer to UBF buffer. The output basically is the same as from Bfprint() UBF API function.
See atmitest/test031_logging/atmiclt31.c for sample code.
For following code:
tplogprintubf(log_info, "Buffer before cleanup", p_ub);
The debug output looks like:
R:NDRX:4:24112:000:20160925:215908430:_tplog.c:0099:Buffer before cleanup EX_NREQLOGFILE ./logs/request_3.log T_STRING_FLD HELLO WORLD! T_CHAR_FLD A T_LONG_FLD 1000