endurox.tplogprintubf

endurox.tplogprintubf(lev: int, title: str, data: object) None

Print UBF buffer to log file.

tplogprintubf example
    import endurox as e
    e.tplogprintubf(e.log_info, "TEST", {"data":{"T_STRING_FLD":["HELLO", "WORLD"], "T_LONG_FLD":9991}})

    # would print to log file:
    # t:USER:4:c9e5ad48:10162:7f623e424740:000:20220607:090939401481:plogprintubf:bf/ubf.c:1790:TEST
    # T_LONG_FLD    9991
    # T_STRING_FLD  HELLO
    # T_STRING_FLD  WORLD

For more details see tplogprintubf(3) C API call.

Parameters:
  • lev (int) – Log level.

  • title (str) – Dump title.

  • data (dict) – UBF buffer to print.