Back to home page

Enduro/X

 
 

    


0001 TPLOGPRINTUBF(3)
0002 ================
0003 :doctype: manpage
0004 
0005 NAME
0006 ----
0007 tplogprintubf - Print the UBF buffer to current logger
0008 
0009 SYNOPSIS
0010 --------
0011 #include <atmi.h>
0012 
0013 void tplogprintubf(int 'lev', char *'title', UBFH *'p_ub');
0014 
0015 For XATMI client link with '-latmiclt -latmi -lubf -lnstd -lpthread -lrt -lm'
0016 
0017 For XATMI server link with '-latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm'
0018 
0019 DESCRIPTION
0020 -----------
0021 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.
0022 
0023 RETURN VALUE
0024 ------------
0025 N/A
0026 
0027 ERRORS
0028 ------
0029 N/A
0030 
0031 EXAMPLE
0032 -------
0033 See *atmitest/test031_logging/atmiclt31.c* for sample code.
0034 
0035 For following code:
0036 
0037 --------------------------------------------------------------------------------
0038 tplogprintubf(log_info, "Buffer before cleanup", p_ub);
0039 --------------------------------------------------------------------------------
0040 
0041 The debug output looks like:
0042 
0043 --------------------------------------------------------------------------------
0044 R:NDRX:4:24112:000:20160925:215908430:_tplog.c:0099:Buffer before cleanup
0045 EX_NREQLOGFILE  ./logs/request_3.log
0046 T_STRING_FLD    HELLO WORLD!
0047 T_CHAR_FLD      A
0048 T_LONG_FLD      1000
0049 --------------------------------------------------------------------------------
0050 
0051 BUGS
0052 ----
0053 Report bugs to support@mavimax.com
0054 
0055 SEE ALSO
0056 --------
0057 *tplogsetreqfile(3)* *tplogsetreqfile_direct(3)* *tplogconfig(3)* *tplogdump(3)* *tplogdumpdiff(3)* *tplog(3)* *ex_devguide(guides)* *ndrxdebug.conf(5)*
0058 
0059 COPYING
0060 -------
0061 (C) Mavimax, Ltd
0062