endurox.tplogconfig¶
- endurox.tplogconfig(logger: int, lev: int, debug_string: str, module: str, new_file: str) None ¶
Configure Enduro/X logger.
tplogconfig example¶import endurox as e e.tplogconfig(e.LOG_FACILITY_TP, -1, "tp=4", "", "/dev/stdout") e.tplog_info("Test") e.tplog_debug("Test Debug") # would print to stdout: # t:USER:4:d190fd96:29754:7f35f54f2740:000:20220601:160215386056:tplog :/tplog.c:0582:Test
For more details see tplogconfig(3) C API call.
- Raises:
NstdException –
- Parameters:
logger (int) – Bitwise flags for logger/topic identification:
LOG_FACILITY_NDRX
,LOG_FACILITY_UBF
,LOG_FACILITY_TP
LOG_FACILITY_TP_THREAD
,LOG_FACILITY_TP_REQUEST
,LOG_FACILITY_NDRX_THREAD
LOG_FACILITY_UBF_THREAD
,LOG_FACILITY_NDRX_REQUEST
,LOG_FACILITY_UBF_REQUEST
lev (int) – Level to set. Use -1 to ignore this setting.
debug_string (str) – Debug string according to ndrxdebug.conf(5).
module (str) – Module name. Use empty string if not changing.
new_file (str) – New logfile name. Use empty string if not changing.