theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Log_PY_API

MqContextC - log the output to a string or a MkLogFileCMore...

+ Collaboration diagram for MqContextC_Log_PY_API:

Functions

MK_DEPRECATED static MK_UNUSED OT_ProcRet pymqmsgque_MqContextC_Log (MqContextC_ARGS)
 
static OT_ProcRet pymqmsgque_MqContextC_LogConfig (MqContextC_ARGS)
  Python: ctx.LogConfig(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MqConfigS
 
static OT_ProcRet pymqmsgque_MqContextC_LogEnv (MqContextC_ARGS)
  Python: ctx.LogEnv(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MqEnvS
 
static OT_ProcRet pymqmsgque_MqContextC_LogLink (MqContextC_ARGS)
  Python: ctx.LogLink(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MqLinkS
 
static OT_ProcRet pymqmsgque_MqContextC_LogSetup (MqContextC_ARGS)
  Python: ctx.LogSetup(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MqSetupS
 
static OT_ProcRet pymqmsgque_MqContextC_LogShort (MqContextC_ARGS)
  Python: ctx.LogShort(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?, ?label:string="None"?) C-API
log the MqContextC with less info then MqContextLog
 
static OT_ProcRet pymqmsgque_MqContextC_LogType (MqContextC_ARGS)
  Python: ctx.LogType(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MkTypeS
 
static OT_ProcRet pymqmsgque_MqContextC_LogParentOrChild (MqContextC_ARGS)
  Python: string ctx.LogParentOrChild() C-API
is ctx a PARENT or a CHILD ? …
 
static OT_ProcRet pymqmsgque_MqContextC_LogServerOrClient (MqContextC_ARGS)
  Python: string ctx.LogServerOrClient() C-API
is ctx a SERVER or a CLIENT ? …
 

Detailed Description

MqContextC - log the output to a string or a MkLogFileC

Logging is an important part of the debugging and validation task.

The logging target is set with MkRuntimeLogTargetSet wich accepts a filename or the special token stdout or stderr.

Many logging functions have common parameters:

Parameters
[in]fmtobjmanaged object used to format the log-message (default=None → use default-format)
[in]callfunca user-defined postfix to identify the calling-function or the environment (default = name-of-function, None = resolve-own-name)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)

Function Documentation

◆ pymqmsgque_MqContextC_Log()

MK_DEPRECATED static MK_UNUSED OT_ProcRet pymqmsgque_MqContextC_Log ( MqContextC_ARGS )
static

Definition at line 1599 of file MqContextC_py.c.

#define OT_ERROR_LNG_RETURN

◆ pymqmsgque_MqContextC_LogConfig()

static OT_ProcRet pymqmsgque_MqContextC_LogConfig ( MqContextC_ARGS )
static

Python: ctx.LogConfig(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MqConfigS

Definition at line 1602 of file MqContextC_py.c.

1602 {
1605 MK_OBJN fmtobj = NULL;
1607 MK_DBG debug = 0;
1609 MK_STRN callfunc = NULL;
1611 MK_I32 lvl = 0;
1614 if (debug > MkRuntimeDebugGet()) {
1616 goto end;
1617 }
1618 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1619 MqContextLogConfig (hdl, fmtobj, debug, callfunc, lvl);
1621 goto end;
1622 error:
1624 end:
1627}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_NI4(val)
#define OT_retObj_SET_Error
#define OT_FRAME_CLEANUP
#define OT_retObj_SET_None
#define OT_retObj_RETURN
#define OT_GET_CALL_PROC
#define OT_CHECK_OPTIONAL(val)
#define OT_CHECK_NOARGS
#define OT_CHECK_STRN(val)
#define OT_SETUP_hdl
#define LogConfig_doc
#define error
Definition high_lng.h:339
#define MK_NULL_YES
const MK_STRB * MK_STRN
signed int MK_I32
int MK_DBG
static bool MkSysStringIsNULL(MK_STRN str)
static MK_I32 MkRuntimeDebugGet(void)
#define MqContextLogConfig(...)
#define OT_CHECK_OBJN(val, nullB)

◆ pymqmsgque_MqContextC_LogEnv()

static OT_ProcRet pymqmsgque_MqContextC_LogEnv ( MqContextC_ARGS )
static

Python: ctx.LogEnv(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MqEnvS

Definition at line 1630 of file MqContextC_py.c.

1630 {
1633 MK_OBJN fmtobj = NULL;
1635 MK_DBG debug = 0;
1637 MK_STRN callfunc = NULL;
1639 MK_I32 lvl = 0;
1642 if (debug > MkRuntimeDebugGet()) {
1644 goto end;
1645 }
1646 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1647 MqContextLogEnv (hdl, fmtobj, debug, callfunc, lvl);
1649 goto end;
1650 error:
1652 end:
1655}
#define LogEnv_doc
#define MqContextLogEnv(...)

◆ pymqmsgque_MqContextC_LogLink()

static OT_ProcRet pymqmsgque_MqContextC_LogLink ( MqContextC_ARGS )
static

Python: ctx.LogLink(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MqLinkS

Definition at line 1658 of file MqContextC_py.c.

1658 {
1661 MK_OBJN fmtobj = NULL;
1663 MK_DBG debug = 0;
1665 MK_STRN callfunc = NULL;
1667 MK_I32 lvl = 0;
1670 if (debug > MkRuntimeDebugGet()) {
1672 goto end;
1673 }
1674 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1675 MqContextLogLink (hdl, fmtobj, debug, callfunc, lvl);
1677 goto end;
1678 error:
1680 end:
1683}
#define LogLink_doc
#define MqContextLogLink(...)

◆ pymqmsgque_MqContextC_LogParentOrChild()

static OT_ProcRet pymqmsgque_MqContextC_LogParentOrChild ( MqContextC_ARGS )
static

Python: string ctx.LogParentOrChild() C-API
is ctx a PARENT or a CHILD ? …

Definition at line 1772 of file MqContextC_py.c.

1772 {
1777 goto end;
1778 error:
1780 end:
1782}
#define OT_SETUP_NOARG(d)
#define OT_retObj_SET_STR(nat)
#define LogParentOrChild_doc
static MK_STRN MqLogParentOrChild(MQ_CTXN ctx)
is ctx a PARENT or a CHILD ? …

◆ pymqmsgque_MqContextC_LogServerOrClient()

static OT_ProcRet pymqmsgque_MqContextC_LogServerOrClient ( MqContextC_ARGS )
static

Python: string ctx.LogServerOrClient() C-API
is ctx a SERVER or a CLIENT ? …

Definition at line 1785 of file MqContextC_py.c.

1785 {
1790 goto end;
1791 error:
1793 end:
1795}
#define LogServerOrClient_doc
static MK_STRN MqLogServerOrClient(MQ_CTXN const ctx)
is ctx a SERVER or a CLIENT ? …

◆ pymqmsgque_MqContextC_LogSetup()

static OT_ProcRet pymqmsgque_MqContextC_LogSetup ( MqContextC_ARGS )
static

Python: ctx.LogSetup(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MqSetupS

Definition at line 1686 of file MqContextC_py.c.

1686 {
1689 MK_OBJN fmtobj = NULL;
1691 MK_DBG debug = 0;
1693 MK_STRN callfunc = NULL;
1695 MK_I32 lvl = 0;
1698 if (debug > MkRuntimeDebugGet()) {
1700 goto end;
1701 }
1702 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1703 MqContextLogSetup (hdl, fmtobj, debug, callfunc, lvl);
1705 goto end;
1706 error:
1708 end:
1711}
#define LogSetup_doc
#define MqContextLogSetup(...)

◆ pymqmsgque_MqContextC_LogShort()

static OT_ProcRet pymqmsgque_MqContextC_LogShort ( MqContextC_ARGS )
static

Python: ctx.LogShort(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?, ?label:string="None"?) C-API
log the MqContextC with less info then MqContextLog

Definition at line 1714 of file MqContextC_py.c.

1714 {
1717 MK_OBJN fmtobj = NULL;
1719 MK_DBG debug = 0;
1721 MK_STRN callfunc = NULL;
1723 MK_I32 lvl = 0;
1725 MK_STRN label = NULL;
1728 if (debug > MkRuntimeDebugGet()) {
1730 goto end;
1731 }
1732 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1733 MqContextLogShort (hdl, fmtobj, debug, callfunc, lvl, label);
1735 goto end;
1736 error:
1738 end:
1741}
#define LogShort_doc
#define MqContextLogShort(...)

◆ pymqmsgque_MqContextC_LogType()

static OT_ProcRet pymqmsgque_MqContextC_LogType ( MqContextC_ARGS )
static

Python: ctx.LogType(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MkTypeS

Definition at line 1744 of file MqContextC_py.c.

1744 {
1747 MK_OBJN fmtobj = NULL;
1749 MK_DBG debug = 0;
1751 MK_STRN callfunc = NULL;
1753 MK_I32 lvl = 0;
1756 if (debug > MkRuntimeDebugGet()) {
1758 goto end;
1759 }
1760 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1761 MqContextLogType (hdl, fmtobj, debug, callfunc, lvl);
1763 goto end;
1764 error:
1766 end:
1769}
#define LogType_doc
#define MqContextLogType(...)