endurox.tplogdump¶
- endurox.tplogdump(lev: int, comment: str, data: bytes) None ¶
Dump byte array to log file.
tplogdump example¶import endurox as e e.tplogdump(e.log_info, "TEST TITLE", b'HELLO WORLD FROM ENDUROX') # current log file will contain: # t:USER:4:d190fd96:04714:7f15d6d9e740:000:20220607:170621814408:tplogdump :/tplog.c:0614:TEST TITLE (nr bytes: 24) # 0000 48 45 4c 4c 4f 20 57 4f 52 4c 44 20 46 52 4f 4d HELLO WORLD FROM # 0010 20 45 4e 44 55 52 4f 58 ENDUROX
For more details see tplogdump(3) C API call.