Back to home page

Enduro/X

 
 

    


0001 TPLOGSETREQFILE_DIRECT(3)
0002 =========================
0003 :doctype: manpage
0004 
0005 
0006 NAME
0007 ----
0008 tplogsetreqfile_direct - Set request file, directly to TLS
0009 
0010 
0011 SYNOPSIS
0012 --------
0013 #include <ndebug.h>
0014 #include <nerror.h>
0015 
0016 void tplogsetreqfile_direct(char *'filename');
0017 
0018 
0019 Link with '-lnstd -lpthread -lrt -lm'
0020 
0021 DESCRIPTION
0022 -----------
0023 Function opens *LOG_FACILITY_TP_REQUEST*, *LOG_FACILITY_NDRX_REQUEST* 
0024 and *LOG_FACILITY_UBF_REQUEST* facility for logging. The logging 
0025 is performed to specified 'filename' file. If it fails to set the log file, 
0026 the logger will write the logs to *stderr*. No error is returned.
0027 
0028 Special care shall be taken when working in multi-threaded environment (this
0029 includes single thread apps running built in Enduro/X 'emq', 'poll' and 'SystemV'
0030 modes where auxiliary threads are used. In mulit-threaded mode, the output
0031 file name shall differ for process logging file name. Otherwise the output file
0032 pointer is re-used from process logger. Thus If other thread changes process
0033 loggers, this process request logger file pointer might become broken (and
0034 thus cause segmentation faults). See more on thread safety section in *tplogconfig(3)*.
0035 
0036 RETURN VALUE
0037 ------------
0038 N/A
0039 
0040 ERRORS
0041 ------
0042 N/A
0043 
0044 BUGS
0045 ----
0046 Report bugs to support@mavimax.com
0047 
0048 SEE ALSO
0049 --------
0050 *tplogdump(3)* *tplogdumpdiff(3)* *tplog(3)* *tplogsetreqfile_direct(3)* 
0051 *tplogsetreqfile(3)* *ex_devguide(guides)* ndrxdebug.conf(5)
0052 
0053 COPYING
0054 -------
0055 (C) Mavimax, Ltd
0056