theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Log_TCL_API

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

+ Collaboration diagram for MqContextC_Log_TCL_API:

Functions

MK_DEPRECATED static MK_UNUSED OT_ProcRet tclmqmsgque_MqContextC_Log (MqContextC_ARGS)
 
static OT_ProcRet tclmqmsgque_MqContextC_LogConfig (MqContextC_ARGS)
  Tcl: $ctx LogConfig ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MqConfigS
 
static OT_ProcRet tclmqmsgque_MqContextC_LogEnv (MqContextC_ARGS)
  Tcl: $ctx LogEnv ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MqEnvS
 
static OT_ProcRet tclmqmsgque_MqContextC_LogLink (MqContextC_ARGS)
  Tcl: $ctx LogLink ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MqLinkS
 
static OT_ProcRet tclmqmsgque_MqContextC_LogSetup (MqContextC_ARGS)
  Tcl: $ctx LogSetup ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MqSetupS
 
static OT_ProcRet tclmqmsgque_MqContextC_LogShort (MqContextC_ARGS)
  Tcl: $ctx LogShort ?fmtobj:MkObjectC="MK_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 tclmqmsgque_MqContextC_LogType (MqContextC_ARGS)
  Tcl: $ctx LogType ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MqContextC part MkTypeS
 
static OT_ProcRet tclmqmsgque_MqContextC_LogParentOrChild (MqContextC_ARGS)
  Tcl: string [$ctx LogParentOrChild] C-API
is ctx a PARENT or a CHILD ? …
 
static OT_ProcRet tclmqmsgque_MqContextC_LogServerOrClient (MqContextC_ARGS)
  Tcl: 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="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

◆ tclmqmsgque_MqContextC_Log()

MK_DEPRECATED static MK_UNUSED OT_ProcRet tclmqmsgque_MqContextC_Log ( MqContextC_ARGS )
static

Definition at line 1652 of file MqContextC_tcl.c.

#define OT_ERROR_LNG_RETURN

◆ tclmqmsgque_MqContextC_LogConfig()

static OT_ProcRet tclmqmsgque_MqContextC_LogConfig ( MqContextC_ARGS )
static

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

Definition at line 1655 of file MqContextC_tcl.c.

1655 {
1658 MK_OBJN fmtobj = NULL;
1660 MK_DBG debug = 0;
1662 MK_STRN callfunc = NULL;
1664 MK_I32 lvl = 0;
1667 if (debug > MkRuntimeDebugGet()) {
1669 goto end;
1670 }
1671 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1672 MqContextLogConfig (hdl, fmtobj, debug, callfunc, lvl);
1674 goto end;
1675 error:
1677 end:
1680}
#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)

◆ tclmqmsgque_MqContextC_LogEnv()

static OT_ProcRet tclmqmsgque_MqContextC_LogEnv ( MqContextC_ARGS )
static

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

Definition at line 1683 of file MqContextC_tcl.c.

1683 {
1686 MK_OBJN fmtobj = NULL;
1688 MK_DBG debug = 0;
1690 MK_STRN callfunc = NULL;
1692 MK_I32 lvl = 0;
1695 if (debug > MkRuntimeDebugGet()) {
1697 goto end;
1698 }
1699 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1700 MqContextLogEnv (hdl, fmtobj, debug, callfunc, lvl);
1702 goto end;
1703 error:
1705 end:
1708}
#define LogEnv_doc
#define MqContextLogEnv(...)

◆ tclmqmsgque_MqContextC_LogLink()

static OT_ProcRet tclmqmsgque_MqContextC_LogLink ( MqContextC_ARGS )
static

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

Definition at line 1711 of file MqContextC_tcl.c.

1711 {
1714 MK_OBJN fmtobj = NULL;
1716 MK_DBG debug = 0;
1718 MK_STRN callfunc = NULL;
1720 MK_I32 lvl = 0;
1723 if (debug > MkRuntimeDebugGet()) {
1725 goto end;
1726 }
1727 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1728 MqContextLogLink (hdl, fmtobj, debug, callfunc, lvl);
1730 goto end;
1731 error:
1733 end:
1736}
#define LogLink_doc
#define MqContextLogLink(...)

◆ tclmqmsgque_MqContextC_LogParentOrChild()

static OT_ProcRet tclmqmsgque_MqContextC_LogParentOrChild ( MqContextC_ARGS )
static

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

Definition at line 1825 of file MqContextC_tcl.c.

1825 {
1830 goto end;
1831 error:
1833 end:
1835}
#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 ? …

◆ tclmqmsgque_MqContextC_LogServerOrClient()

static OT_ProcRet tclmqmsgque_MqContextC_LogServerOrClient ( MqContextC_ARGS )
static

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

Definition at line 1838 of file MqContextC_tcl.c.

1838 {
1843 goto end;
1844 error:
1846 end:
1848}
#define LogServerOrClient_doc
static MK_STRN MqLogServerOrClient(MQ_CTXN const ctx)
is ctx a SERVER or a CLIENT ? …

◆ tclmqmsgque_MqContextC_LogSetup()

static OT_ProcRet tclmqmsgque_MqContextC_LogSetup ( MqContextC_ARGS )
static

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

Definition at line 1739 of file MqContextC_tcl.c.

1739 {
1742 MK_OBJN fmtobj = NULL;
1744 MK_DBG debug = 0;
1746 MK_STRN callfunc = NULL;
1748 MK_I32 lvl = 0;
1751 if (debug > MkRuntimeDebugGet()) {
1753 goto end;
1754 }
1755 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1756 MqContextLogSetup (hdl, fmtobj, debug, callfunc, lvl);
1758 goto end;
1759 error:
1761 end:
1764}
#define LogSetup_doc
#define MqContextLogSetup(...)

◆ tclmqmsgque_MqContextC_LogShort()

static OT_ProcRet tclmqmsgque_MqContextC_LogShort ( MqContextC_ARGS )
static

Tcl: $ctx LogShort ?fmtobj:MkObjectC="MK_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 1767 of file MqContextC_tcl.c.

1767 {
1770 MK_OBJN fmtobj = NULL;
1772 MK_DBG debug = 0;
1774 MK_STRN callfunc = NULL;
1776 MK_I32 lvl = 0;
1778 MK_STRN label = NULL;
1781 if (debug > MkRuntimeDebugGet()) {
1783 goto end;
1784 }
1785 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1786 MqContextLogShort (hdl, fmtobj, debug, callfunc, lvl, label);
1788 goto end;
1789 error:
1791 end:
1794}
#define LogShort_doc
#define MqContextLogShort(...)

◆ tclmqmsgque_MqContextC_LogType()

static OT_ProcRet tclmqmsgque_MqContextC_LogType ( MqContextC_ARGS )
static

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

Definition at line 1797 of file MqContextC_tcl.c.

1797 {
1800 MK_OBJN fmtobj = NULL;
1802 MK_DBG debug = 0;
1804 MK_STRN callfunc = NULL;
1806 MK_I32 lvl = 0;
1809 if (debug > MkRuntimeDebugGet()) {
1811 goto end;
1812 }
1813 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1814 MqContextLogType (hdl, fmtobj, debug, callfunc, lvl);
1816 goto end;
1817 error:
1819 end:
1822}
#define LogType_doc
#define MqContextLogType(...)