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

Following error codes may be present:
NEFORMAT - Debug string format error.
NESYSTEM - System error.

Parameters: