ndrxdebug.conf — Enduro/X Runtime Debug configuration
BINARY_NAME [ndrx=NDRX_DEBUG_LEVEL] [ubf=UBF_DEBUG_LEVEL] [tp=TP_DEBUG_LEVEL] [bufsz=DEBUG_BUFFER_SIZE] [threaded=THREADED] [mkdir=MKDIR] file=[LOG_FILE] [iflags=INTEGRATION_FLAGS] [rebins=REGEX_BINS] [match=REGEX]
debug.conf a file specified by NDRX_DEBUG_CONF env variable configures EnduroX platform logging for each of the separate executable. The logging is done from two sources. One source is UBF and another is ATMI (ndrx). For each of the sources debug level can be set for each separate binary. Debug file or stderr also can be specified for each of the separate binaries.
Key/value configuration is encoded in standard configuration string, see Enduro/X Administration Manual, Standard configuration string section.
Sample configuration:
# Global config:
* ndrx=5 ubf=1 lines=1 bufsz=1000 tp=5 file= rebins="regexp1, regexp2"
# Per binary config:
xadmin file=${NDRX_APPHOME}/tmp/XADMIN
ndrxd file=${NDRX_APPHOME}/tmp/NDRXD
myclient file=${NDRX_APPHOME}/tmp/MYCLIENT
myserver file=${NDRX_APPHOME}/tmp/MYSERVER threaded=y
ud file=${NDRX_APPHOME}/tmp/NDRX
regexp1 file=${NDRX_APPHOME}/tmp/ALL match="^ALL.*"
regexp2 file=${NDRX_APPHOME}/tmp/OTHER match="^other.*"Similar syntax is used to describe the debug configuration when common configuration is used (i.e. configuration in ini files). The difference is that there is one extra equation mark between the binary and debug string, see example:
[@debug]
# Global config:
*=ndrx=5 ubf=1 lines=1 bufsz=1000 tp=5 file= rebins="regexp1, regexp2"
# Per binary config:
xadmin=file=${NDRX_APPHOME}/tmp/XADMIN
ndrxd=file=${NDRX_APPHOME}/tmp/NDRXD
myclient=file=${NDRX_APPHOME}/tmp/MYCLIENT
myserver=file=${NDRX_APPHOME}/tmp/MYSERVER threaded=y
ud=file=${NDRX_APPHOME}/tmp/NDRX
regexp1= file=${NDRX_APPHOME}/tmp/ALL match="^ALL.*"
regexp2 file=${NDRX_APPHOME}/tmp/OTHER match="^other.*"