MqContextC - log the output to a string or a MkLogFileC …
More...
|
MQ_EXTERN void | libmqmsgque::MqContextLog_RT (MK_RT const mkrt, MQ_CTXN const ctx, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl) |
| log the MqContextC …
|
|
MQ_EXTERN void | libmqmsgque::MqContextLogShort_RT (MK_RT const mkrt, MQ_CTXN const ctx, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl, MK_STRN const label) |
| log the MqContextC with less info then MqContextLog …
|
|
MQ_EXTERN void | libmqmsgque::MqContextLogConfig_RT (MK_RT const mkrt, MQ_CTXN const ctx, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl) |
| log the MqContextC part libmqmsgque::MqConfigS …
|
|
MQ_EXTERN void | libmqmsgque::MqContextLogSetup_RT (MK_RT const mkrt, MQ_CTXN const ctx, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl) |
| log the MqContextC part libmqmsgque::MqSetupS …
|
|
MQ_EXTERN void | libmqmsgque::MqContextLogLink_RT (MK_RT const mkrt, MQ_CTXN ctx, MK_OBJN const fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl) |
| log the MqContextC part libmqmsgque::MqLinkS …
|
|
MQ_EXTERN void | libmqmsgque::MqContextLogEnv_RT (MK_RT const mkrt, MQ_CTX const ctx, MK_OBJ const fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl) |
| log the MqContextC part libmqmsgque::MqEnvS …
|
|
MQ_EXTERN void | libmqmsgque::MqContextLogType_RT (MK_RT const mkrt, MQ_CTX const ctx, MK_OBJ fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl) |
| log the MqContextC part MkTypeS …
|
|
MQ_EXTERN void | libmqmsgque::MqContextLogDebug (MQ_CTX const ctx) |
|
MK_ATTR_HDL MK_STRN | libmqmsgque::MqLogServerOrClient (MQ_CTXN const ctx) |
| is ctx a SERVER or a CLIENT ? …
|
|
MK_ATTR_HDL MK_STRN | libmqmsgque::MqLogParentOrChild (MQ_CTXN ctx) |
| is ctx a PARENT or a CHILD ? …
|
|
|
#define | MqContextLog_NULL(...) |
|
#define | MqContextLog(...) |
|
#define | MqContextLog_4(ctx, fmtobj, debug, callfunc) |
|
#define | MqContextLog_3(ctx, fmtobj, debug) |
|
#define | MqContextLog_2(ctx, fmtobj) |
|
#define | MqContextLog_1(ctx) |
|
#define | MqContextLogConfig_NULL(...) |
|
#define | MqContextLogConfig(...) |
|
#define | MqContextLogConfig_4(ctx, fmtobj, debug, callfunc) |
|
#define | MqContextLogConfig_3(ctx, fmtobj, debug) |
|
#define | MqContextLogConfig_2(ctx, fmtobj) |
|
#define | MqContextLogConfig_1(ctx) |
|
#define | MqContextLogEnv_NULL(...) |
|
#define | MqContextLogEnv(...) |
|
#define | MqContextLogEnv_4(ctx, fmtobj, debug, callfunc) |
|
#define | MqContextLogEnv_3(ctx, fmtobj, debug) |
|
#define | MqContextLogEnv_2(ctx, fmtobj) |
|
#define | MqContextLogEnv_1(ctx) |
|
#define | MqContextLogLink_NULL(...) |
|
#define | MqContextLogLink(...) |
|
#define | MqContextLogLink_4(ctx, fmtobj, debug, callfunc) |
|
#define | MqContextLogLink_3(ctx, fmtobj, debug) |
|
#define | MqContextLogLink_2(ctx, fmtobj) |
|
#define | MqContextLogLink_1(ctx) |
|
#define | MqContextLogSetup_NULL(...) |
|
#define | MqContextLogSetup(...) |
|
#define | MqContextLogSetup_4(ctx, fmtobj, debug, callfunc) |
|
#define | MqContextLogSetup_3(ctx, fmtobj, debug) |
|
#define | MqContextLogSetup_2(ctx, fmtobj) |
|
#define | MqContextLogSetup_1(ctx) |
|
#define | MqContextLogShort_NULL(...) |
|
#define | MqContextLogShort(...) |
|
#define | MqContextLogShort_5(ctx, fmtobj, debug, callfunc, lvl) |
|
#define | MqContextLogShort_4(ctx, fmtobj, debug, callfunc) |
|
#define | MqContextLogShort_3(ctx, fmtobj, debug) |
|
#define | MqContextLogShort_2(ctx, fmtobj) |
|
#define | MqContextLogShort_1(ctx) |
|
#define | MqContextLogType_NULL(...) |
|
#define | MqContextLogType(...) |
|
#define | MqContextLogType_4(ctx, fmtobj, debug, callfunc) |
|
#define | MqContextLogType_3(ctx, fmtobj, debug) |
|
#define | MqContextLogType_2(ctx, fmtobj) |
|
#define | MqContextLogType_1(ctx) |
|
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] | fmtobj | managed object used to format the log-message (default=MK_NULL → use default-format) |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | debug | the debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0 ) |
◆ MqContextLog
#define MqContextLog |
( |
| ... | ) |
|
◆ MqContextLog_1
#define MqContextLog_1 |
( |
| ctx | ) |
|
◆ MqContextLog_2
#define MqContextLog_2 |
( |
| ctx, |
|
|
| fmtobj ) |
◆ MqContextLog_3
#define MqContextLog_3 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug ) |
◆ MqContextLog_4
#define MqContextLog_4 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug, |
|
|
| callfunc ) |
◆ MqContextLog_NULL
#define MqContextLog_NULL |
( |
| ... | ) |
|
◆ MqContextLogConfig
#define MqContextLogConfig |
( |
| ... | ) |
|
◆ MqContextLogConfig_1
#define MqContextLogConfig_1 |
( |
| ctx | ) |
|
◆ MqContextLogConfig_2
#define MqContextLogConfig_2 |
( |
| ctx, |
|
|
| fmtobj ) |
◆ MqContextLogConfig_3
#define MqContextLogConfig_3 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug ) |
◆ MqContextLogConfig_4
#define MqContextLogConfig_4 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug, |
|
|
| callfunc ) |
◆ MqContextLogConfig_NULL
#define MqContextLogConfig_NULL |
( |
| ... | ) |
|
◆ MqContextLogEnv
#define MqContextLogEnv |
( |
| ... | ) |
|
◆ MqContextLogEnv_1
#define MqContextLogEnv_1 |
( |
| ctx | ) |
|
◆ MqContextLogEnv_2
#define MqContextLogEnv_2 |
( |
| ctx, |
|
|
| fmtobj ) |
◆ MqContextLogEnv_3
#define MqContextLogEnv_3 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug ) |
◆ MqContextLogEnv_4
#define MqContextLogEnv_4 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug, |
|
|
| callfunc ) |
◆ MqContextLogEnv_NULL
#define MqContextLogEnv_NULL |
( |
| ... | ) |
|
◆ MqContextLogLink
#define MqContextLogLink |
( |
| ... | ) |
|
◆ MqContextLogLink_1
#define MqContextLogLink_1 |
( |
| ctx | ) |
|
◆ MqContextLogLink_2
#define MqContextLogLink_2 |
( |
| ctx, |
|
|
| fmtobj ) |
◆ MqContextLogLink_3
#define MqContextLogLink_3 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug ) |
◆ MqContextLogLink_4
#define MqContextLogLink_4 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug, |
|
|
| callfunc ) |
◆ MqContextLogLink_NULL
#define MqContextLogLink_NULL |
( |
| ... | ) |
|
◆ MqContextLogSetup
#define MqContextLogSetup |
( |
| ... | ) |
|
◆ MqContextLogSetup_1
#define MqContextLogSetup_1 |
( |
| ctx | ) |
|
◆ MqContextLogSetup_2
#define MqContextLogSetup_2 |
( |
| ctx, |
|
|
| fmtobj ) |
◆ MqContextLogSetup_3
#define MqContextLogSetup_3 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug ) |
◆ MqContextLogSetup_4
#define MqContextLogSetup_4 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug, |
|
|
| callfunc ) |
◆ MqContextLogSetup_NULL
#define MqContextLogSetup_NULL |
( |
| ... | ) |
|
◆ MqContextLogShort
#define MqContextLogShort |
( |
| ... | ) |
|
◆ MqContextLogShort_1
#define MqContextLogShort_1 |
( |
| ctx | ) |
|
◆ MqContextLogShort_2
#define MqContextLogShort_2 |
( |
| ctx, |
|
|
| fmtobj ) |
◆ MqContextLogShort_3
#define MqContextLogShort_3 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug ) |
◆ MqContextLogShort_4
#define MqContextLogShort_4 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug, |
|
|
| callfunc ) |
◆ MqContextLogShort_5
#define MqContextLogShort_5 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug, |
|
|
| callfunc, |
|
|
| lvl ) |
◆ MqContextLogShort_NULL
#define MqContextLogShort_NULL |
( |
| ... | ) |
|
◆ MqContextLogType
#define MqContextLogType |
( |
| ... | ) |
|
◆ MqContextLogType_1
#define MqContextLogType_1 |
( |
| ctx | ) |
|
◆ MqContextLogType_2
#define MqContextLogType_2 |
( |
| ctx, |
|
|
| fmtobj ) |
◆ MqContextLogType_3
#define MqContextLogType_3 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug ) |
◆ MqContextLogType_4
#define MqContextLogType_4 |
( |
| ctx, |
|
|
| fmtobj, |
|
|
| debug, |
|
|
| callfunc ) |
◆ MqContextLogType_NULL
#define MqContextLogType_NULL |
( |
| ... | ) |
|
◆ MqContextLog_RT()
log the MqContextC …
- Parameters
-
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | ctx | the MqContextS instance to work on |
[in] | fmtobj | managed object used to format the log-message (default=MK_NULL → use default-format) |
[in] | debug | the debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0 ) |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | lvl | a user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0 ) |
- See also
- MqContextC_C_API MqContextLogShort
◆ MqContextLogConfig_RT()
log the MqContextC part libmqmsgque::MqConfigS …
- Parameters
-
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | ctx | the MqContextS instance to work on |
[in] | fmtobj | managed object used to format the log-message (default=MK_NULL → use default-format) |
[in] | debug | the debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0 ) |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | lvl | a user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0 ) |
◆ MqContextLogDebug()
◆ MqContextLogEnv_RT()
log the MqContextC part libmqmsgque::MqEnvS …
- Parameters
-
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | ctx | the MqContextS instance to work on |
[in] | fmtobj | managed object used to format the log-message (default=MK_NULL → use default-format) |
[in] | debug | the debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0 ) |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | lvl | a user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0 ) |
- See also
- MqContextC_EnvApi_C_API
◆ MqContextLogLink_RT()
log the MqContextC part libmqmsgque::MqLinkS …
- Parameters
-
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | ctx | the MqContextS instance to work on |
[in] | fmtobj | managed object used to format the log-message (default=MK_NULL → use default-format) |
[in] | debug | the debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0 ) |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | lvl | a user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0 ) |
◆ MqContextLogSetup_RT()
log the MqContextC part libmqmsgque::MqSetupS …
- Parameters
-
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | ctx | the MqContextS instance to work on |
[in] | fmtobj | managed object used to format the log-message (default=MK_NULL → use default-format) |
[in] | debug | the debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0 ) |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | lvl | a user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0 ) |
◆ MqContextLogShort_RT()
log the MqContextC with less info then MqContextLog …
- Parameters
-
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | ctx | the MqContextS instance to work on |
[in] | fmtobj | managed object used to format the log-message (default=MK_NULL → use default-format) |
[in] | label | a string to identify a task or object |
[in] | debug | the debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0 ) |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | lvl | a user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0 ) |
- See also
- MqContextC_C_API MqContextLog
◆ MqContextLogType_RT()
log the MqContextC part MkTypeS …
- Parameters
-
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | ctx | the MqContextS instance to work on |
[in] | fmtobj | managed object used to format the log-message (default=MK_NULL → use default-format) |
[in] | debug | the debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0 ) |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | lvl | a user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0 ) |
- See also
- MqContextC_C_API MqContextLog
◆ MqLogParentOrChild()
is ctx a PARENT or a CHILD ? …
- Parameters
-
- Returns
- the string PARENT or CHILD
Definition at line 9682 of file LibMqMsgque_mq.h.
9684 {
9685 MK_ATTR_HDL_CHECK(ctx);
9687}
#define MQ_IS_PARENT(ctx)
◆ MqLogServerOrClient()
is ctx a SERVER or a CLIENT ? …
- Parameters
-
- Returns
- the string SERVER or CLIENT
Definition at line 9671 of file LibMqMsgque_mq.h.
9673 {
9674 MK_ATTR_HDL_CHECK(ctx);
9676}
#define MQ_IS_SERVER(ctx)
extract boolean information from context