theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Log_CS_API

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

+ Collaboration diagram for MqContextC_Log_CS_API:

Functions

void csmqmsgque.MqContextC.LogConfig (MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
  C#: ctx.LogConfig(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
log the MqContextC part MqConfigS
 
void csmqmsgque.MqContextC.LogEnv (MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
  C#: ctx.LogEnv(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
log the MqContextC part MqEnvS
 
void csmqmsgque.MqContextC.LogLink (MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
  C#: ctx.LogLink(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
log the MqContextC part MqLinkS
 
void csmqmsgque.MqContextC.LogSetup (MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
  C#: ctx.LogSetup(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
log the MqContextC part MqSetupS
 
void csmqmsgque.MqContextC.LogShort (MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0, string label=null)
  C#: ctx.LogShort(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0, string label = null) C-API
log the MqContextC with less info then MqContextLog
 
new void csmqmsgque.MqContextC.LogType (MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
  C#: ctx.LogType(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
log the MqContextC part MkTypeS
 
string csmqmsgque.MqContextC.LogParentOrChild ()
  C#: string ctx.LogParentOrChild() C-API
is ctx a PARENT or a CHILD ? …
 
string csmqmsgque.MqContextC.LogServerOrClient ()
  C#: 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=null → use default-format)
[in]callfunca user-defined postfix to identify the calling-function or the environment (default = name-of-function, null = resolve-own-name)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)

Function Documentation

◆ LogConfig()

void csmqmsgque.MqContextC.LogConfig ( MkObjectC fmtobj = null,
int debug = 0,
[CallerMemberName] string callfunc = null,
int lvl = 0 )
inline

C#: ctx.LogConfig(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
log the MqContextC part MqConfigS

Definition at line 831 of file MqContextC.cs.

831 {
832 IntPtr fmtobj_hdl = MkObjectC.getOBJ_null_allow(fmtobj);
833 if (debug > (int)(MkRuntimeC.DebugGet())) {return;}
834 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
835 Mq.MqContextLogConfig(mkrt, hdl, fmtobj_hdl, debug, callfunc_cstr, lvl);
836 Marshal.FreeHGlobal(callfunc_cstr);
837 }
csmqmsgque.MqMsgque Mq
static IntPtr getOBJ_null_allow(MkObjectC obj)

◆ LogEnv()

void csmqmsgque.MqContextC.LogEnv ( MkObjectC fmtobj = null,
int debug = 0,
[CallerMemberName] string callfunc = null,
int lvl = 0 )
inline

C#: ctx.LogEnv(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
log the MqContextC part MqEnvS

Definition at line 840 of file MqContextC.cs.

840 {
841 IntPtr fmtobj_hdl = MkObjectC.getOBJ_null_allow(fmtobj);
842 if (debug > (int)(MkRuntimeC.DebugGet())) {return;}
843 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
844 Mq.MqContextLogEnv(mkrt, hdl, fmtobj_hdl, debug, callfunc_cstr, lvl);
845 Marshal.FreeHGlobal(callfunc_cstr);
846 }

◆ LogLink()

void csmqmsgque.MqContextC.LogLink ( MkObjectC fmtobj = null,
int debug = 0,
[CallerMemberName] string callfunc = null,
int lvl = 0 )
inline

C#: ctx.LogLink(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
log the MqContextC part MqLinkS

Definition at line 849 of file MqContextC.cs.

849 {
850 IntPtr fmtobj_hdl = MkObjectC.getOBJ_null_allow(fmtobj);
851 if (debug > (int)(MkRuntimeC.DebugGet())) {return;}
852 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
853 Mq.MqContextLogLink(mkrt, hdl, fmtobj_hdl, debug, callfunc_cstr, lvl);
854 Marshal.FreeHGlobal(callfunc_cstr);
855 }

◆ LogParentOrChild()

string csmqmsgque.MqContextC.LogParentOrChild ( )
inline

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

Definition at line 887 of file MqContextC.cs.

887 {
888 IntPtr __retVal__L = Mq.MqLogParentOrChild(hdl);
889 return Marshal.PtrToStringAnsi(__retVal__L);
890 }

◆ LogServerOrClient()

string csmqmsgque.MqContextC.LogServerOrClient ( )
inline

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

Definition at line 893 of file MqContextC.cs.

893 {
894 IntPtr __retVal__L = Mq.MqLogServerOrClient(hdl);
895 return Marshal.PtrToStringAnsi(__retVal__L);
896 }

◆ LogSetup()

void csmqmsgque.MqContextC.LogSetup ( MkObjectC fmtobj = null,
int debug = 0,
[CallerMemberName] string callfunc = null,
int lvl = 0 )
inline

C#: ctx.LogSetup(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
log the MqContextC part MqSetupS

Definition at line 858 of file MqContextC.cs.

858 {
859 IntPtr fmtobj_hdl = MkObjectC.getOBJ_null_allow(fmtobj);
860 if (debug > (int)(MkRuntimeC.DebugGet())) {return;}
861 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
862 Mq.MqContextLogSetup(mkrt, hdl, fmtobj_hdl, debug, callfunc_cstr, lvl);
863 Marshal.FreeHGlobal(callfunc_cstr);
864 }

◆ LogShort()

void csmqmsgque.MqContextC.LogShort ( MkObjectC fmtobj = null,
int debug = 0,
[CallerMemberName] string callfunc = null,
int lvl = 0,
string label = null )
inline

C#: ctx.LogShort(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0, string label = null) C-API
log the MqContextC with less info then MqContextLog

Definition at line 867 of file MqContextC.cs.

867 {
868 IntPtr fmtobj_hdl = MkObjectC.getOBJ_null_allow(fmtobj);
869 if (debug > (int)(MkRuntimeC.DebugGet())) {return;}
870 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
871 IntPtr label_cstr = Marshal.StringToHGlobalAnsi(label);
872 Mq.MqContextLogShort(mkrt, hdl, fmtobj_hdl, debug, callfunc_cstr, lvl, label_cstr);
873 Marshal.FreeHGlobal(callfunc_cstr);
874 Marshal.FreeHGlobal(label_cstr);
875 }

◆ LogType()

new void csmqmsgque.MqContextC.LogType ( MkObjectC fmtobj = null,
int debug = 0,
[CallerMemberName] string callfunc = null,
int lvl = 0 )
inline

C#: ctx.LogType(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
log the MqContextC part MkTypeS

Definition at line 878 of file MqContextC.cs.

878 {
879 IntPtr fmtobj_hdl = MkObjectC.getOBJ_null_allow(fmtobj);
880 if (debug > (int)(MkRuntimeC.DebugGet())) {return;}
881 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
882 Mq.MqContextLogType(mkrt, hdl, fmtobj_hdl, debug, callfunc_cstr, lvl);
883 Marshal.FreeHGlobal(callfunc_cstr);
884 }