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

static OT_ProcRet py_mqmsgque_MqContextC_Log (MqContextC_ARGS)
  Python: ctx.Log(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC
 
static OT_ProcRet py_mqmsgque_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 py_mqmsgque_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 py_mqmsgque_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 py_mqmsgque_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 py_mqmsgque_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 py_mqmsgque_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 py_mqmsgque_MqContextC_LogParentOrChild (MqContextC_ARGS)
  Python: string ctx.LogParentOrChild() C-API
is ctx a PARENT or a CHILD ? …
 
static OT_ProcRet py_mqmsgque_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 MkRuntimeSetLogfile 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)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)

Function Documentation

◆ py_mqmsgque_MqContextC_Log()

static OT_ProcRet py_mqmsgque_MqContextC_Log ( MqContextC_ARGS )
static

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

Definition at line 1589 of file MqContextC_py.c.

1589 {
1591 OT_SETUP_VARARGS(0,4,Log_doc)
1592 MK_OBJN fmtobj = NULL;
1593 OT_CHECK_OPTIONAL(OT_CHECK_OBJN (fmtobj,MK_NULL_YES))
1594 MK_DBG debug = 0;
1595 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (debug))
1596 MK_STRN callfunc = NULL;
1597 OT_CHECK_OPTIONAL(OT_CHECK_STRN (callfunc))
1598 MK_I32 lvl = 0;
1599 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (lvl))
1600 OT_CHECK_NOARGS
1601 if (debug > MkRuntimeGetDebug()) {
1602 OT_retObj_SET_None;
1603 goto end;
1604 }
1605 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1606 OT_FRAME_CLEANUP;
1607 MqContextLog (hdl, fmtobj, debug, callfunc, lvl);
1608 OT_retObj_SET_None
1609 goto end;
1610 error:
1611 OT_retObj_SET_Error
1612 end:
1614}
#define OT_SETUP_hdl
#define Log_doc
#define OT_retObj_RETURN
#define error
#define MK_NULL_YES
const MK_STRB * MK_STRN
signed int MK_I32
int MK_DBG
bool MkSysStringIsNULL(MK_STRN str)
MK_I32 MkRuntimeGetDebug(void)
#define MqContextLog(...)

◆ py_mqmsgque_MqContextC_LogConfig()

static OT_ProcRet py_mqmsgque_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 1617 of file MqContextC_py.c.

1617 {
1619 OT_SETUP_VARARGS(0,4,LogConfig_doc)
1620 MK_OBJN fmtobj = NULL;
1621 OT_CHECK_OPTIONAL(OT_CHECK_OBJN (fmtobj,MK_NULL_YES))
1622 MK_DBG debug = 0;
1623 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (debug))
1624 MK_STRN callfunc = NULL;
1625 OT_CHECK_OPTIONAL(OT_CHECK_STRN (callfunc))
1626 MK_I32 lvl = 0;
1627 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (lvl))
1628 OT_CHECK_NOARGS
1629 if (debug > MkRuntimeGetDebug()) {
1630 OT_retObj_SET_None;
1631 goto end;
1632 }
1633 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1634 OT_FRAME_CLEANUP;
1635 MqContextLogConfig (hdl, fmtobj, debug, callfunc, lvl);
1636 OT_retObj_SET_None
1637 goto end;
1638 error:
1639 OT_retObj_SET_Error
1640 end:
1642}
#define LogConfig_doc
#define MqContextLogConfig(...)

◆ py_mqmsgque_MqContextC_LogEnv()

static OT_ProcRet py_mqmsgque_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 1645 of file MqContextC_py.c.

1645 {
1647 OT_SETUP_VARARGS(0,4,LogEnv_doc)
1648 MK_OBJ fmtobj = NULL;
1649 OT_CHECK_OPTIONAL(OT_CHECK_OBJ (fmtobj,MK_NULL_YES))
1650 MK_DBG debug = 0;
1651 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (debug))
1652 MK_STRN callfunc = NULL;
1653 OT_CHECK_OPTIONAL(OT_CHECK_STRN (callfunc))
1654 MK_I32 lvl = 0;
1655 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (lvl))
1656 OT_CHECK_NOARGS
1657 if (debug > MkRuntimeGetDebug()) {
1658 OT_retObj_SET_None;
1659 goto end;
1660 }
1661 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1662 OT_FRAME_CLEANUP;
1663 MqContextLogEnv (hdl, fmtobj, debug, callfunc, lvl);
1664 OT_retObj_SET_None
1665 goto end;
1666 error:
1667 OT_retObj_SET_Error
1668 end:
1670}
#define LogEnv_doc
#define MqContextLogEnv(...)

◆ py_mqmsgque_MqContextC_LogLink()

static OT_ProcRet py_mqmsgque_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 1673 of file MqContextC_py.c.

1673 {
1675 OT_SETUP_VARARGS(0,4,LogLink_doc)
1676 MK_OBJN fmtobj = NULL;
1677 OT_CHECK_OPTIONAL(OT_CHECK_OBJN (fmtobj,MK_NULL_YES))
1678 MK_DBG debug = 0;
1679 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (debug))
1680 MK_STRN callfunc = NULL;
1681 OT_CHECK_OPTIONAL(OT_CHECK_STRN (callfunc))
1682 MK_I32 lvl = 0;
1683 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (lvl))
1684 OT_CHECK_NOARGS
1685 if (debug > MkRuntimeGetDebug()) {
1686 OT_retObj_SET_None;
1687 goto end;
1688 }
1689 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1690 OT_FRAME_CLEANUP;
1691 MqContextLogLink (hdl, fmtobj, debug, callfunc, lvl);
1692 OT_retObj_SET_None
1693 goto end;
1694 error:
1695 OT_retObj_SET_Error
1696 end:
1698}
#define LogLink_doc
#define MqContextLogLink(...)

◆ py_mqmsgque_MqContextC_LogParentOrChild()

static OT_ProcRet py_mqmsgque_MqContextC_LogParentOrChild ( MqContextC_ARGS )
static

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

Definition at line 1787 of file MqContextC_py.c.

1787 {
1789 OT_SETUP_NOARG(LogParentOrChild_doc)
1790 OT_CHECK_NOARGS
1791 OT_retObj_SET_STR(MqLogParentOrChild (hdl))
1792 goto end;
1793 error:
1794 OT_retObj_SET_Error
1795 end:
1797}
#define LogParentOrChild_doc
MK_ATTR_HDL MK_STRN MqLogParentOrChild(MQ_CTXN ctx)
is ctx a PARENT or a CHILD ? …

◆ py_mqmsgque_MqContextC_LogServerOrClient()

static OT_ProcRet py_mqmsgque_MqContextC_LogServerOrClient ( MqContextC_ARGS )
static

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

Definition at line 1800 of file MqContextC_py.c.

1800 {
1802 OT_SETUP_NOARG(LogServerOrClient_doc)
1803 OT_CHECK_NOARGS
1804 OT_retObj_SET_STR(MqLogServerOrClient (hdl))
1805 goto end;
1806 error:
1807 OT_retObj_SET_Error
1808 end:
1810}
#define LogServerOrClient_doc
MK_ATTR_HDL MK_STRN MqLogServerOrClient(MQ_CTXN const ctx)
is ctx a SERVER or a CLIENT ? …

◆ py_mqmsgque_MqContextC_LogSetup()

static OT_ProcRet py_mqmsgque_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 1701 of file MqContextC_py.c.

1701 {
1703 OT_SETUP_VARARGS(0,4,LogSetup_doc)
1704 MK_OBJN fmtobj = NULL;
1705 OT_CHECK_OPTIONAL(OT_CHECK_OBJN (fmtobj,MK_NULL_YES))
1706 MK_DBG debug = 0;
1707 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (debug))
1708 MK_STRN callfunc = NULL;
1709 OT_CHECK_OPTIONAL(OT_CHECK_STRN (callfunc))
1710 MK_I32 lvl = 0;
1711 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (lvl))
1712 OT_CHECK_NOARGS
1713 if (debug > MkRuntimeGetDebug()) {
1714 OT_retObj_SET_None;
1715 goto end;
1716 }
1717 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1718 OT_FRAME_CLEANUP;
1719 MqContextLogSetup (hdl, fmtobj, debug, callfunc, lvl);
1720 OT_retObj_SET_None
1721 goto end;
1722 error:
1723 OT_retObj_SET_Error
1724 end:
1726}
#define LogSetup_doc
#define MqContextLogSetup(...)

◆ py_mqmsgque_MqContextC_LogShort()

static OT_ProcRet py_mqmsgque_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 1729 of file MqContextC_py.c.

1729 {
1731 OT_SETUP_VARARGS(0,5,LogShort_doc)
1732 MK_OBJN fmtobj = NULL;
1733 OT_CHECK_OPTIONAL(OT_CHECK_OBJN (fmtobj,MK_NULL_YES))
1734 MK_DBG debug = 0;
1735 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (debug))
1736 MK_STRN callfunc = NULL;
1737 OT_CHECK_OPTIONAL(OT_CHECK_STRN (callfunc))
1738 MK_I32 lvl = 0;
1739 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (lvl))
1740 MK_STRN label = NULL;
1741 OT_CHECK_OPTIONAL(OT_CHECK_STRN (label))
1742 OT_CHECK_NOARGS
1743 if (debug > MkRuntimeGetDebug()) {
1744 OT_retObj_SET_None;
1745 goto end;
1746 }
1747 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1748 OT_FRAME_CLEANUP;
1749 MqContextLogShort (hdl, fmtobj, debug, callfunc, lvl, label);
1750 OT_retObj_SET_None
1751 goto end;
1752 error:
1753 OT_retObj_SET_Error
1754 end:
1756}
#define LogShort_doc
#define MqContextLogShort(...)

◆ py_mqmsgque_MqContextC_LogType()

static OT_ProcRet py_mqmsgque_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 1759 of file MqContextC_py.c.

1759 {
1761 OT_SETUP_VARARGS(0,4,LogType_doc)
1762 MK_OBJ fmtobj = NULL;
1763 OT_CHECK_OPTIONAL(OT_CHECK_OBJ (fmtobj,MK_NULL_YES))
1764 MK_DBG debug = 0;
1765 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (debug))
1766 MK_STRN callfunc = NULL;
1767 OT_CHECK_OPTIONAL(OT_CHECK_STRN (callfunc))
1768 MK_I32 lvl = 0;
1769 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (lvl))
1770 OT_CHECK_NOARGS
1771 if (debug > MkRuntimeGetDebug()) {
1772 OT_retObj_SET_None;
1773 goto end;
1774 }
1775 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1776 OT_FRAME_CLEANUP;
1777 MqContextLogType (hdl, fmtobj, debug, callfunc, lvl);
1778 OT_retObj_SET_None
1779 goto end;
1780 error:
1781 OT_retObj_SET_Error
1782 end:
1784}
#define LogType_doc
#define MqContextLogType(...)