theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Log_ATL_API

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

+ Collaboration diagram for MqContextC_Log_ATL_API:

Functions

MK_DEPRECATED static MK_UNUSED OT_ProcRet atlmqmsgque_MqContextC_Log (MqContextC_ARGS)
 
static OT_ProcRet atlmqmsgque_MqContextC_LogConfig (MqContextC_ARGS)
  Atl: MqContextC::LogConfig $ctx ?fmtobj:MkObjectC=NULL? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MqConfigS
 
static OT_ProcRet atlmqmsgque_MqContextC_LogEnv (MqContextC_ARGS)
  Atl: MqContextC::LogEnv $ctx ?fmtobj:MkObjectC=NULL? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MqEnvS
 
static OT_ProcRet atlmqmsgque_MqContextC_LogLink (MqContextC_ARGS)
  Atl: MqContextC::LogLink $ctx ?fmtobj:MkObjectC=NULL? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MqLinkS
 
static OT_ProcRet atlmqmsgque_MqContextC_LogSetup (MqContextC_ARGS)
  Atl: MqContextC::LogSetup $ctx ?fmtobj:MkObjectC=NULL? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MqSetupS
 
static OT_ProcRet atlmqmsgque_MqContextC_LogShort (MqContextC_ARGS)
  Atl: MqContextC::LogShort $ctx ?fmtobj:MkObjectC=NULL? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? ?label:string="NULL"? C-API
log the MqContextC with less info then MqContextLog
 
static OT_ProcRet atlmqmsgque_MqContextC_LogType (MqContextC_ARGS)
  Atl: MqContextC::LogType $ctx ?fmtobj:MkObjectC=NULL? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MkTypeS
 
static OT_ProcRet atlmqmsgque_MqContextC_LogParentOrChild (MqContextC_ARGS)
  Atl: string [MqContextC::LogParentOrChild $ctx] C-API
is ctx a PARENT or a CHILD ? …
 
static OT_ProcRet atlmqmsgque_MqContextC_LogServerOrClient (MqContextC_ARGS)
  Atl: string [MqContextC::LogServerOrClient $ctx] 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="MK_NULL" → use default-format)
[in]callfunca user-defined postfix to identify the calling-function or the environment (default = name-of-function, "MK_NULL" = resolve-own-name)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)

Function Documentation

◆ atlmqmsgque_MqContextC_Log()

MK_DEPRECATED static MK_UNUSED OT_ProcRet atlmqmsgque_MqContextC_Log ( MqContextC_ARGS )
static

Definition at line 1630 of file MqContextC_atl.c.

#define OT_ERROR_LNG_RETURN

◆ atlmqmsgque_MqContextC_LogConfig()

static OT_ProcRet atlmqmsgque_MqContextC_LogConfig ( MqContextC_ARGS )
static

Atl: MqContextC::LogConfig $ctx ?fmtobj:MkObjectC=NULL? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MqConfigS

Definition at line 1633 of file MqContextC_atl.c.

1633 {
1636 MK_OBJN fmtobj = NULL;
1638 MK_DBG debug = 0;
1640 MK_STRN callfunc = NULL;
1642 MK_I32 lvl = 0;
1645 if (debug > MkRuntimeDebugGet()) {
1647 goto end;
1648 }
1649 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1650 MqContextLogConfig (hdl, fmtobj, debug, callfunc, lvl);
1652 goto end;
1653 error:
1655 end:
1658}
#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)

◆ atlmqmsgque_MqContextC_LogEnv()

static OT_ProcRet atlmqmsgque_MqContextC_LogEnv ( MqContextC_ARGS )
static

Atl: MqContextC::LogEnv $ctx ?fmtobj:MkObjectC=NULL? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MqEnvS

Definition at line 1661 of file MqContextC_atl.c.

1661 {
1664 MK_OBJN fmtobj = NULL;
1666 MK_DBG debug = 0;
1668 MK_STRN callfunc = NULL;
1670 MK_I32 lvl = 0;
1673 if (debug > MkRuntimeDebugGet()) {
1675 goto end;
1676 }
1677 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1678 MqContextLogEnv (hdl, fmtobj, debug, callfunc, lvl);
1680 goto end;
1681 error:
1683 end:
1686}
#define LogEnv_doc
#define MqContextLogEnv(...)

◆ atlmqmsgque_MqContextC_LogLink()

static OT_ProcRet atlmqmsgque_MqContextC_LogLink ( MqContextC_ARGS )
static

Atl: MqContextC::LogLink $ctx ?fmtobj:MkObjectC=NULL? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MqLinkS

Definition at line 1689 of file MqContextC_atl.c.

1689 {
1692 MK_OBJN fmtobj = NULL;
1694 MK_DBG debug = 0;
1696 MK_STRN callfunc = NULL;
1698 MK_I32 lvl = 0;
1701 if (debug > MkRuntimeDebugGet()) {
1703 goto end;
1704 }
1705 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1706 MqContextLogLink (hdl, fmtobj, debug, callfunc, lvl);
1708 goto end;
1709 error:
1711 end:
1714}
#define LogLink_doc
#define MqContextLogLink(...)

◆ atlmqmsgque_MqContextC_LogParentOrChild()

static OT_ProcRet atlmqmsgque_MqContextC_LogParentOrChild ( MqContextC_ARGS )
static

Atl: string [MqContextC::LogParentOrChild $ctx] C-API
is ctx a PARENT or a CHILD ? …

Definition at line 1803 of file MqContextC_atl.c.

1803 {
1808 goto end;
1809 error:
1811 end:
1813}
#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 ? …

◆ atlmqmsgque_MqContextC_LogServerOrClient()

static OT_ProcRet atlmqmsgque_MqContextC_LogServerOrClient ( MqContextC_ARGS )
static

Atl: string [MqContextC::LogServerOrClient $ctx] C-API
is ctx a SERVER or a CLIENT ? …

Definition at line 1816 of file MqContextC_atl.c.

1816 {
1821 goto end;
1822 error:
1824 end:
1826}
#define LogServerOrClient_doc
static MK_STRN MqLogServerOrClient(MQ_CTXN const ctx)
is ctx a SERVER or a CLIENT ? …

◆ atlmqmsgque_MqContextC_LogSetup()

static OT_ProcRet atlmqmsgque_MqContextC_LogSetup ( MqContextC_ARGS )
static

Atl: MqContextC::LogSetup $ctx ?fmtobj:MkObjectC=NULL? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MqSetupS

Definition at line 1717 of file MqContextC_atl.c.

1717 {
1720 MK_OBJN fmtobj = NULL;
1722 MK_DBG debug = 0;
1724 MK_STRN callfunc = NULL;
1726 MK_I32 lvl = 0;
1729 if (debug > MkRuntimeDebugGet()) {
1731 goto end;
1732 }
1733 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1734 MqContextLogSetup (hdl, fmtobj, debug, callfunc, lvl);
1736 goto end;
1737 error:
1739 end:
1742}
#define LogSetup_doc
#define MqContextLogSetup(...)

◆ atlmqmsgque_MqContextC_LogShort()

static OT_ProcRet atlmqmsgque_MqContextC_LogShort ( MqContextC_ARGS )
static

Atl: MqContextC::LogShort $ctx ?fmtobj:MkObjectC=NULL? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? ?label:string="NULL"? C-API
log the MqContextC with less info then MqContextLog

Definition at line 1745 of file MqContextC_atl.c.

1745 {
1748 MK_OBJN fmtobj = NULL;
1750 MK_DBG debug = 0;
1752 MK_STRN callfunc = NULL;
1754 MK_I32 lvl = 0;
1756 MK_STRN label = NULL;
1759 if (debug > MkRuntimeDebugGet()) {
1761 goto end;
1762 }
1763 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1764 MqContextLogShort (hdl, fmtobj, debug, callfunc, lvl, label);
1766 goto end;
1767 error:
1769 end:
1772}
#define LogShort_doc
#define MqContextLogShort(...)

◆ atlmqmsgque_MqContextC_LogType()

static OT_ProcRet atlmqmsgque_MqContextC_LogType ( MqContextC_ARGS )
static

Atl: MqContextC::LogType $ctx ?fmtobj:MkObjectC=NULL? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MkTypeS

Definition at line 1775 of file MqContextC_atl.c.

1775 {
1778 MK_OBJN fmtobj = NULL;
1780 MK_DBG debug = 0;
1782 MK_STRN callfunc = NULL;
1784 MK_I32 lvl = 0;
1787 if (debug > MkRuntimeDebugGet()) {
1789 goto end;
1790 }
1791 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1792 MqContextLogType (hdl, fmtobj, debug, callfunc, lvl);
1794 goto end;
1795 error:
1797 end:
1800}
#define LogType_doc
#define MqContextLogType(...)