theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Log_CC_API

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

+ Collaboration diagram for MqContextC_Log_CC_API:

Functions

void ccmqmsgque::MqContextC::LogConfig (const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: ctx.LogConfig(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqConfigS
 
void ccmqmsgque::MqContextC::LogConfig (const MkObjectC &fmtobj, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: ctx.LogConfig(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqConfigS
 
void ccmqmsgque::MqContextC::LogEnv (const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: ctx.LogEnv(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqEnvS
 
void ccmqmsgque::MqContextC::LogEnv (const MkObjectC &fmtobj, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: ctx.LogEnv(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqEnvS
 
void ccmqmsgque::MqContextC::LogLink (const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: ctx.LogLink(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqLinkS
 
void ccmqmsgque::MqContextC::LogLink (const MkObjectC &fmtobj, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: ctx.LogLink(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqLinkS
 
void ccmqmsgque::MqContextC::LogSetup (const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: ctx.LogSetup(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqSetupS
 
void ccmqmsgque::MqContextC::LogSetup (const MkObjectC &fmtobj, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: ctx.LogSetup(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqSetupS
 
void ccmqmsgque::MqContextC::LogShort (const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0, MK_STRN label=NULL) const
  C++: ctx.LogShort(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0, MK_STRN label = NULL) C-API
log the MqContextC with less info then MqContextLog
 
void ccmqmsgque::MqContextC::LogShort (const MkObjectC &fmtobj, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0, MK_STRN label=NULL) const
  C++: ctx.LogShort(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0, MK_STRN label = NULL) C-API
log the MqContextC with less info then MqContextLog
 
void ccmqmsgque::MqContextC::LogType (const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: ctx.LogType(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part MkTypeS
 
void ccmqmsgque::MqContextC::LogType (const MkObjectC &fmtobj, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: ctx.LogType(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part MkTypeS
 
MK_STRN ccmqmsgque::MqContextC::LogParentOrChild () const
  C++: MK_STRN ctx.LogParentOrChild() C-API
is ctx a PARENT or a CHILD ? …
 
MK_STRN ccmqmsgque::MqContextC::LogServerOrClient () const
  C++: MK_STRN 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)

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

◆ LogConfig() [1/2]

void ccmqmsgque::MqContextC::LogConfig ( const MkObjectC & fmtobj,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: ctx.LogConfig(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqConfigS

Definition at line 862 of file MqContextC_inline_cc.hh.

862 {
863 MK_UNUSED auto ctx = getCTXN();
864 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
865 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
866 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
867 MqContextLogConfig(ctx, fmtobj_hdl, debug, callfunc, lvl);
868 }
#define MK_UNUSED
MK_OBJN getOBJN() const
const struct MkObjectS * MK_OBJN
static MK_I32 MkRuntimeDebugGet(void)
MQ_CTXN getCTXN() const
(const) return the LibMsgqueObject from current MqContextC instance
#define MqContextLogConfig(...)

◆ LogConfig() [2/2]

void ccmqmsgque::MqContextC::LogConfig ( const MkObjectC * fmtobj = NULL,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: ctx.LogConfig(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqConfigS

Definition at line 853 of file MqContextC_inline_cc.hh.

853 {
854 MK_UNUSED auto ctx = getCTXN();
855 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
856 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
857 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
858 MqContextLogConfig(ctx, fmtobj_hdl, debug, callfunc, lvl);
859 }
MK_OBJN getOBJN__null_allow() const

◆ LogEnv() [1/2]

void ccmqmsgque::MqContextC::LogEnv ( const MkObjectC & fmtobj,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: ctx.LogEnv(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqEnvS

Definition at line 880 of file MqContextC_inline_cc.hh.

880 {
881 MK_UNUSED auto ctx = getCTX();
882 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
883 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
884 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
885 MqContextLogEnv(ctx, fmtobj_hdl, debug, callfunc, lvl);
886 }
MQ_CTX getCTX() const
return the LibMsgqueObject from current MqContextC instance
#define MqContextLogEnv(...)

◆ LogEnv() [2/2]

void ccmqmsgque::MqContextC::LogEnv ( const MkObjectC * fmtobj = NULL,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: ctx.LogEnv(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqEnvS

Definition at line 871 of file MqContextC_inline_cc.hh.

871 {
872 MK_UNUSED auto ctx = getCTX();
873 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
874 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
875 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
876 MqContextLogEnv(ctx, fmtobj_hdl, debug, callfunc, lvl);
877 }

◆ LogLink() [1/2]

void ccmqmsgque::MqContextC::LogLink ( const MkObjectC & fmtobj,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: ctx.LogLink(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqLinkS

Definition at line 898 of file MqContextC_inline_cc.hh.

898 {
899 MK_UNUSED auto ctx = getCTXN();
900 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
901 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
902 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
903 MqContextLogLink(ctx, fmtobj_hdl, debug, callfunc, lvl);
904 }
#define MqContextLogLink(...)

◆ LogLink() [2/2]

void ccmqmsgque::MqContextC::LogLink ( const MkObjectC * fmtobj = NULL,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: ctx.LogLink(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqLinkS

Definition at line 889 of file MqContextC_inline_cc.hh.

889 {
890 MK_UNUSED auto ctx = getCTXN();
891 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
892 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
893 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
894 MqContextLogLink(ctx, fmtobj_hdl, debug, callfunc, lvl);
895 }

◆ LogParentOrChild()

MK_STRN ccmqmsgque::MqContextC::LogParentOrChild ( ) const
inline

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

Definition at line 961 of file MqContextC_inline_cc.hh.

961 {
962 MK_UNUSED auto ctx = getCTXN();
963 MK_STRN __retVal__L = MqLogParentOrChild(ctx);
964 return __retVal__L;
965 }
const MK_STRB * MK_STRN
static MK_STRN MqLogParentOrChild(MQ_CTXN ctx)
is ctx a PARENT or a CHILD ? …

◆ LogServerOrClient()

MK_STRN ccmqmsgque::MqContextC::LogServerOrClient ( ) const
inline

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

Definition at line 968 of file MqContextC_inline_cc.hh.

968 {
969 MK_UNUSED auto ctx = getCTXN();
970 MK_STRN __retVal__L = MqLogServerOrClient(ctx);
971 return __retVal__L;
972 }
static MK_STRN MqLogServerOrClient(MQ_CTXN const ctx)
is ctx a SERVER or a CLIENT ? …

◆ LogSetup() [1/2]

void ccmqmsgque::MqContextC::LogSetup ( const MkObjectC & fmtobj,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: ctx.LogSetup(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqSetupS

Definition at line 916 of file MqContextC_inline_cc.hh.

916 {
917 MK_UNUSED auto ctx = getCTXN();
918 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
919 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
920 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
921 MqContextLogSetup(ctx, fmtobj_hdl, debug, callfunc, lvl);
922 }
#define MqContextLogSetup(...)

◆ LogSetup() [2/2]

void ccmqmsgque::MqContextC::LogSetup ( const MkObjectC * fmtobj = NULL,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: ctx.LogSetup(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part libmqmsgque::MqSetupS

Definition at line 907 of file MqContextC_inline_cc.hh.

907 {
908 MK_UNUSED auto ctx = getCTXN();
909 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
910 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
911 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
912 MqContextLogSetup(ctx, fmtobj_hdl, debug, callfunc, lvl);
913 }

◆ LogShort() [1/2]

void ccmqmsgque::MqContextC::LogShort ( const MkObjectC & fmtobj,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0,
MK_STRN label = NULL ) const
inline

C++: ctx.LogShort(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0, MK_STRN label = NULL) C-API
log the MqContextC with less info then MqContextLog

Definition at line 934 of file MqContextC_inline_cc.hh.

934 {
935 MK_UNUSED auto ctx = getCTXN();
936 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
937 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
938 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
939 MqContextLogShort(ctx, fmtobj_hdl, debug, callfunc, lvl, label);
940 }
#define MqContextLogShort(...)

◆ LogShort() [2/2]

void ccmqmsgque::MqContextC::LogShort ( const MkObjectC * fmtobj = NULL,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0,
MK_STRN label = NULL ) const
inline

C++: ctx.LogShort(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0, MK_STRN label = NULL) C-API
log the MqContextC with less info then MqContextLog

Definition at line 925 of file MqContextC_inline_cc.hh.

925 {
926 MK_UNUSED auto ctx = getCTXN();
927 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
928 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
929 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
930 MqContextLogShort(ctx, fmtobj_hdl, debug, callfunc, lvl, label);
931 }

◆ LogType() [1/2]

void ccmqmsgque::MqContextC::LogType ( const MkObjectC & fmtobj,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: ctx.LogType(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part MkTypeS

Definition at line 952 of file MqContextC_inline_cc.hh.

952 {
953 MK_UNUSED auto ctx = getCTX();
954 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
955 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
956 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
957 MqContextLogType(ctx, fmtobj_hdl, debug, callfunc, lvl);
958 }
#define MqContextLogType(...)

◆ LogType() [2/2]

void ccmqmsgque::MqContextC::LogType ( const MkObjectC * fmtobj = NULL,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: ctx.LogType(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MqContextC part MkTypeS

Definition at line 943 of file MqContextC_inline_cc.hh.

943 {
944 MK_UNUSED auto ctx = getCTX();
945 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
946 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
947 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
948 MqContextLogType(ctx, fmtobj_hdl, debug, callfunc, lvl);
949 }