theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Log_RB_API

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

+ Collaboration diagram for MqContextC_Log_RB_API:

Functions

MK_DEPRECATED static MK_UNUSED OT_ProcRet rbmqmsgque_MqContextC_Log (MqContextC_ARGS)
 
static OT_ProcRet rbmqmsgque_MqContextC_LogConfig (MqContextC_ARGS)
  Ruby: ctx.LogConfig(?fmtobj:MkObjectC=nil?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MqConfigS
 
static OT_ProcRet rbmqmsgque_MqContextC_LogEnv (MqContextC_ARGS)
  Ruby: ctx.LogEnv(?fmtobj:MkObjectC=nil?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MqEnvS
 
static OT_ProcRet rbmqmsgque_MqContextC_LogLink (MqContextC_ARGS)
  Ruby: ctx.LogLink(?fmtobj:MkObjectC=nil?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MqLinkS
 
static OT_ProcRet rbmqmsgque_MqContextC_LogSetup (MqContextC_ARGS)
  Ruby: ctx.LogSetup(?fmtobj:MkObjectC=nil?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MqSetupS
 
static OT_ProcRet rbmqmsgque_MqContextC_LogShort (MqContextC_ARGS)
  Ruby: ctx.LogShort(?fmtobj:MkObjectC=nil?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?, ?label:string="nil"?) C-API
log the MqContextC with less info then MqContextLog
 
static OT_ProcRet rbmqmsgque_MqContextC_LogType (MqContextC_ARGS)
  Ruby: ctx.LogType(?fmtobj:MkObjectC=nil?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MqContextC part MkTypeS
 
static OT_ProcRet rbmqmsgque_MqContextC_LogParentOrChild (MqContextC_ARGS)
  Ruby: string ctx.LogParentOrChild() C-API
is ctx a PARENT or a CHILD ? …
 
static OT_ProcRet rbmqmsgque_MqContextC_LogServerOrClient (MqContextC_ARGS)
  Ruby: 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=nil → use default-format)
[in]callfunca user-defined postfix to identify the calling-function or the environment (default = name-of-function, nil = resolve-own-name)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)

Function Documentation

◆ rbmqmsgque_MqContextC_Log()

MK_DEPRECATED static MK_UNUSED OT_ProcRet rbmqmsgque_MqContextC_Log ( MqContextC_ARGS )
static

Definition at line 1330 of file MqContextC_rb.c.

#define OT_ERROR_LNG_RETURN

◆ rbmqmsgque_MqContextC_LogConfig()

static OT_ProcRet rbmqmsgque_MqContextC_LogConfig ( MqContextC_ARGS )
static

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

Definition at line 1333 of file MqContextC_rb.c.

1333 {
1336 MK_OBJN fmtobj = NULL;
1338 MK_DBG debug = 0;
1340 MK_STRN callfunc = NULL;
1342 MK_I32 lvl = 0;
1345 if (debug > MkRuntimeDebugGet()) {
1347 goto end;
1348 }
1349 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1350 MqContextLogConfig (hdl, fmtobj, debug, callfunc, lvl);
1352 end: MK_UNUSED /* LONG JUMP on error */
1355}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_NI4(val)
#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 MK_NULL_YES
#define MK_UNUSED
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)

◆ rbmqmsgque_MqContextC_LogEnv()

static OT_ProcRet rbmqmsgque_MqContextC_LogEnv ( MqContextC_ARGS )
static

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

Definition at line 1358 of file MqContextC_rb.c.

1358 {
1361 MK_OBJN fmtobj = NULL;
1363 MK_DBG debug = 0;
1365 MK_STRN callfunc = NULL;
1367 MK_I32 lvl = 0;
1370 if (debug > MkRuntimeDebugGet()) {
1372 goto end;
1373 }
1374 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1375 MqContextLogEnv (hdl, fmtobj, debug, callfunc, lvl);
1377 end: MK_UNUSED /* LONG JUMP on error */
1380}
#define LogEnv_doc
#define MqContextLogEnv(...)

◆ rbmqmsgque_MqContextC_LogLink()

static OT_ProcRet rbmqmsgque_MqContextC_LogLink ( MqContextC_ARGS )
static

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

Definition at line 1383 of file MqContextC_rb.c.

1383 {
1386 MK_OBJN fmtobj = NULL;
1388 MK_DBG debug = 0;
1390 MK_STRN callfunc = NULL;
1392 MK_I32 lvl = 0;
1395 if (debug > MkRuntimeDebugGet()) {
1397 goto end;
1398 }
1399 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1400 MqContextLogLink (hdl, fmtobj, debug, callfunc, lvl);
1402 end: MK_UNUSED /* LONG JUMP on error */
1405}
#define LogLink_doc
#define MqContextLogLink(...)

◆ rbmqmsgque_MqContextC_LogParentOrChild()

static OT_ProcRet rbmqmsgque_MqContextC_LogParentOrChild ( MqContextC_ARGS )
static

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

Definition at line 1485 of file MqContextC_rb.c.

1485 {
1490 end: MK_UNUSED /* LONG JUMP on error */
1492}
#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 ? …

◆ rbmqmsgque_MqContextC_LogServerOrClient()

static OT_ProcRet rbmqmsgque_MqContextC_LogServerOrClient ( MqContextC_ARGS )
static

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

Definition at line 1495 of file MqContextC_rb.c.

1495 {
1500 end: MK_UNUSED /* LONG JUMP on error */
1502}
#define LogServerOrClient_doc
static MK_STRN MqLogServerOrClient(MQ_CTXN const ctx)
is ctx a SERVER or a CLIENT ? …

◆ rbmqmsgque_MqContextC_LogSetup()

static OT_ProcRet rbmqmsgque_MqContextC_LogSetup ( MqContextC_ARGS )
static

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

Definition at line 1408 of file MqContextC_rb.c.

1408 {
1411 MK_OBJN fmtobj = NULL;
1413 MK_DBG debug = 0;
1415 MK_STRN callfunc = NULL;
1417 MK_I32 lvl = 0;
1420 if (debug > MkRuntimeDebugGet()) {
1422 goto end;
1423 }
1424 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1425 MqContextLogSetup (hdl, fmtobj, debug, callfunc, lvl);
1427 end: MK_UNUSED /* LONG JUMP on error */
1430}
#define LogSetup_doc
#define MqContextLogSetup(...)

◆ rbmqmsgque_MqContextC_LogShort()

static OT_ProcRet rbmqmsgque_MqContextC_LogShort ( MqContextC_ARGS )
static

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

Definition at line 1433 of file MqContextC_rb.c.

1433 {
1436 MK_OBJN fmtobj = NULL;
1438 MK_DBG debug = 0;
1440 MK_STRN callfunc = NULL;
1442 MK_I32 lvl = 0;
1444 MK_STRN label = NULL;
1447 if (debug > MkRuntimeDebugGet()) {
1449 goto end;
1450 }
1451 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1452 MqContextLogShort (hdl, fmtobj, debug, callfunc, lvl, label);
1454 end: MK_UNUSED /* LONG JUMP on error */
1457}
#define LogShort_doc
#define MqContextLogShort(...)

◆ rbmqmsgque_MqContextC_LogType()

static OT_ProcRet rbmqmsgque_MqContextC_LogType ( MqContextC_ARGS )
static

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

Definition at line 1460 of file MqContextC_rb.c.

1460 {
1463 MK_OBJN fmtobj = NULL;
1465 MK_DBG debug = 0;
1467 MK_STRN callfunc = NULL;
1469 MK_I32 lvl = 0;
1472 if (debug > MkRuntimeDebugGet()) {
1474 goto end;
1475 }
1476 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1477 MqContextLogType (hdl, fmtobj, debug, callfunc, lvl);
1479 end: MK_UNUSED /* LONG JUMP on error */
1482}
#define LogType_doc
#define MqContextLogType(...)