theKernel 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - py - rb - jv - cc
Loading...
Searching...
No Matches
MkObjectC_Log_C_API

MkObjectC - log information to MkLogFileC (default: stderr) … More...

+ Collaboration diagram for MkObjectC_Log_C_API:

Macros

#define MkLogC_4X(x, message, debug, callfunc)
 
#define MkLogC_3X(x, message, debug)
 
#define MkLogC_2X(x, message)
 
#define MkLogW(x, callfunc, _debug, message)
 
#define MkLogV_lvl(x, debug, printfmt, ...)
 
#define MkLogV_4M(x, callfunc, debug, printfmt, ...)
 
#define MkLogV_4X(x, callfunc, debug, printfmt, ...)
 
#define MkLogV_3X(x, callfunc, printfmt, ...)
 
#define MkLogV_2X(x, printfmt, ...)
 
#define MkLogVL_5X(fmtobj, callfunc, debug, printfmt, var_list)
 
#define MkDDInit   const MK_I32 __dbg = MK_RT_REF.debug
 
#define MkDDInitNum(n)
 
#define MkLogHEX_4X(fmtobj, callfunc, data, len)
 
#define MkObjectLogSimple_1X(x)
 
#define MkObjectLogDetail_1X(x)
 
#define MkObjectLogDetail_1M(m)
 
#define MkObjectLog_1X(x)
 

Functions

MK_EXTERN void MkLogC_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const message, MK_DBG const debug, MK_STRN const callfunc)
 write a logging-message to MkLogFileC (default: stderr) using the internal format …
 
MK_EXTERN void MkLogV_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc, MK_DBG debug, MK_FST const printfmt,...)
 write a printf style logging-message to MkLogFileC (default: stderr) using the internal format …
 
MK_EXTERN void MkLogVL_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc, MK_DBG debug, MK_FST const printfmt, va_list var_list)
 write a vprintf style logging-message to MkLogFileC using the internal format …
 
MK_EXTERN void MkLogHEX_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc, MkBinaryR const data)
 log binaray data as HEX into the MkLogFileC (default: stderr) …
 
MK_EXTERN void MkObjectLogSimple_RT (MK_RT mkrt, MK_OBJN const obj, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 log the MkObjectS into the MkLogFileC (default: stderr) …
 
MK_EXTERN void MkObjectLogDetail_RT (MK_RT mkrt, MK_OBJN const obj, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
MK_EXTERN void MkObjectLog_RT (MK_RT mkrt, MK_OBJN const obj, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 Log-Slot - log the entire object to the MkLogFileC (default: stderr) target …
 

evaluate CODE in debug …

_debug

#define MkDCheck(_debug)
 
#define MkDDCheck(_debug)
 

log a plain string …

Parameters
[in]fmtobjmanaged object used to format the log-message (default=MK_NULL → use default-format) _debug
strthe message to log
#define MkDLogC_O(fmtobj, _debug, str)
 
#define MkDLogC(x, _debug, str)
 
#define MkDDLogC(x, _debug, str)
 

log a vararg string using formatting and checking for logging debug …

Parameters
[in]fmtobjmanaged object used to format the log-message (default=MK_NULL → use default-format) _debug
[in]printfmtis a c-string used as printf like format string
...vararg string argument
#define MkDLogV_O(fmtobj, _debug, printfmt, ...)
 
#define MkDLogV(x, _debug, printfmt, ...)
 
#define MkDDLogV(fmtobj, _debug, printfmt, ...)
 

MkObjectC - MkObjectC_Log_C_API - overload

#define MkLogC_NULL(...)
 
#define MkLogC(...)
 
#define MkLogC_3(fmtobj, message, debug)
 
#define MkLogC_2(fmtobj, message)
 
#define MkLogC_1(message)
 
#define MkLogHEX_NULL(...)
 
#define MkLogHEX(...)
 
#define MkLogHEX_2(fmtobj, data)
 
#define MkLogHEX_1(data)
 
#define MkLogV_NULL(...)
 
#define MkLogV(...)
 
#define MkLogV_3(fmtobj, callfunc, printfmt, ...)
 
#define MkLogV_2(fmtobj, printfmt, ...)
 
#define MkLogV_1(printfmt, ...)
 
#define MkLogVL_NULL(...)
 
#define MkLogVL(...)
 
#define MkLogVL_4(fmtobj, callfunc, printfmt, var_list)
 
#define MkLogVL_3(fmtobj, printfmt, var_list)
 
#define MkLogVL_2(printfmt, var_list)
 
#define MkObjectLog_NULL(...)
 
#define MkObjectLog(...)
 
#define MkObjectLog_4(obj, fmtobj, debug, callfunc)
 
#define MkObjectLog_3(obj, fmtobj, debug)
 
#define MkObjectLog_2(obj, fmtobj)
 
#define MkObjectLog_1(obj)
 
#define MkObjectLogDetail_NULL(...)
 
#define MkObjectLogDetail(...)
 
#define MkObjectLogDetail_4(obj, fmtobj, debug, callfunc)
 
#define MkObjectLogDetail_3(obj, fmtobj, debug)
 
#define MkObjectLogDetail_2(obj, fmtobj)
 
#define MkObjectLogDetail_1(obj)
 
#define MkObjectLogSimple_NULL(...)
 
#define MkObjectLogSimple(...)
 
#define MkObjectLogSimple_4(obj, fmtobj, debug, callfunc)
 
#define MkObjectLogSimple_3(obj, fmtobj, debug)
 
#define MkObjectLogSimple_2(obj, fmtobj)
 
#define MkObjectLogSimple_1(obj)
 

Detailed Description

MkObjectC - log information to MkLogFileC (default: stderr) …

The logging-target is set direct by RuntimeSetLogfile or using the class MkLogFileC.

The target is stored at the MkRuntimeC using a FILE-stream and can be set individually for each thread. The default is stderr.

possible values are:

value decription OS man-page
stdout the standart output stdio(3)
stderr the standart error output stdio(3)
fileName an arbitary fileName fopen(3)

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)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)

Macro Definition Documentation

◆ MkDCheck

#define MkDCheck ( _debug)
Value:
if (unlikely(MK_RT_REF.debug >= _debug))
#define unlikely(x)
#define MK_RT_REF

Definition at line 4980 of file LibMkKernel_mk.h.

◆ MkDDCheck

#define MkDDCheck ( _debug)
Value:
if (unlikely(__dbg >= _debug))

Definition at line 4981 of file LibMkKernel_mk.h.

◆ MkDDInit

#define MkDDInit   const MK_I32 __dbg = MK_RT_REF.debug

Definition at line 4974 of file LibMkKernel_mk.h.

◆ MkDDInitNum

#define MkDDInitNum ( n)
Value:
const MK_I32 __dbg = n
signed int MK_I32
4 byte integer data-type

Definition at line 4975 of file LibMkKernel_mk.h.

◆ MkDDLogC

#define MkDDLogC ( x,
_debug,
str )
Value:
if (unlikely(__dbg >= _debug)) MkLogC_4X(x,str,_debug,__func__)
#define MkLogC_4X(x, message, debug, callfunc)

Definition at line 4994 of file LibMkKernel_mk.h.

4994# define MkDDLogC(x,_debug,str) \
4995 if (unlikely(__dbg >= _debug)) MkLogC_4X(x,str,_debug,__func__)

◆ MkDDLogV

#define MkDDLogV ( fmtobj,
_debug,
printfmt,
... )
Value:
if (unlikely(__dbg >= _debug)) MkLogV_4M(fmtobj,__func__,_debug,printfmt,__VA_ARGS__)
#define MkLogV_4M(x, callfunc, debug, printfmt,...)

Definition at line 5009 of file LibMkKernel_mk.h.

5009# define MkDDLogV(fmtobj,_debug,printfmt,...) \
5010 if (unlikely(__dbg >= _debug)) MkLogV_4M(fmtobj,__func__,_debug,printfmt,__VA_ARGS__)

◆ MkDLogC

#define MkDLogC ( x,
_debug,
str )
Value:
MkDLogC_O(MkOBJ(x),_debug,str)
#define MkOBJ(x)
cast a known-object into an MkObjectS pointer
#define MkDLogC_O(fmtobj, _debug, str)

Definition at line 4992 of file LibMkKernel_mk.h.

◆ MkDLogC_O

#define MkDLogC_O ( fmtobj,
_debug,
str )
Value:
if (unlikely(MK_RT_REF.debug >= _debug)) MkLogC(fmtobj,str,_debug,__func__)
#define MkLogC(...)

Definition at line 4989 of file LibMkKernel_mk.h.

4989# define MkDLogC_O(fmtobj,_debug,str) \
4990 if (unlikely(MK_RT_REF.debug >= _debug)) MkLogC(fmtobj,str,_debug,__func__)

◆ MkDLogV

#define MkDLogV ( x,
_debug,
printfmt,
... )
Value:
MkDLogV_O(MkOBJ(x),_debug,printfmt,__VA_ARGS__)
#define MkDLogV_O(fmtobj, _debug, printfmt,...)

Definition at line 5007 of file LibMkKernel_mk.h.

◆ MkDLogV_O

#define MkDLogV_O ( fmtobj,
_debug,
printfmt,
... )
Value:
if (unlikely(MK_RT_REF.debug >= _debug)) MkLogV(fmtobj,__func__,_debug,printfmt,__VA_ARGS__)
#define MkLogV(...)

Definition at line 5004 of file LibMkKernel_mk.h.

5004# define MkDLogV_O(fmtobj,_debug,printfmt,...) \
5005 if (unlikely(MK_RT_REF.debug >= _debug)) MkLogV(fmtobj,__func__,_debug,printfmt,__VA_ARGS__)

◆ MkLogC

#define MkLogC ( ...)
Value:
MkLogC_RT(MK_RT_CALL __VA_ARGS__)
MK_EXTERN void MkLogC_RT(MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const message, MK_DBG const debug, MK_STRN const callfunc)
write a logging-message to MkLogFileC (default: stderr) using the internal format …
#define MK_RT_CALL

Definition at line 1533 of file kernel_overload_mk.h.

◆ MkLogC_1

#define MkLogC_1 ( message)
Value:
MkLogC(NULL,message,0,__func__)

Definition at line 1536 of file kernel_overload_mk.h.

◆ MkLogC_2

#define MkLogC_2 ( fmtobj,
message )
Value:
MkLogC(fmtobj,message,0,__func__)

Definition at line 1535 of file kernel_overload_mk.h.

◆ MkLogC_2X

#define MkLogC_2X ( x,
message )
Value:
MkLogC_2(MkOBJ(x),message)
#define MkLogC_2(fmtobj, message)

Definition at line 4918 of file LibMkKernel_mk.h.

◆ MkLogC_3

#define MkLogC_3 ( fmtobj,
message,
debug )
Value:
MkLogC(fmtobj,message,debug,__func__)

Definition at line 1534 of file kernel_overload_mk.h.

◆ MkLogC_3X

#define MkLogC_3X ( x,
message,
debug )
Value:
MkLogC_3(MkOBJ(x),message,debug)
#define MkLogC_3(fmtobj, message, debug)

Definition at line 4917 of file LibMkKernel_mk.h.

◆ MkLogC_4X

#define MkLogC_4X ( x,
message,
debug,
callfunc )
Value:
MkLogC(MkOBJ(x),message,debug,callfunc)

Definition at line 4916 of file LibMkKernel_mk.h.

◆ MkLogC_NULL

#define MkLogC_NULL ( ...)
Value:
#define MK_RT_CALL_NULL

Definition at line 1532 of file kernel_overload_mk.h.

◆ MkLogHEX

#define MkLogHEX ( ...)
Value:
MkLogHEX_RT(MK_RT_CALL __VA_ARGS__)
MK_EXTERN void MkLogHEX_RT(MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc, MkBinaryR const data)
log binaray data as HEX into the MkLogFileC (default: stderr) …

Definition at line 1538 of file kernel_overload_mk.h.

◆ MkLogHEX_1

#define MkLogHEX_1 ( data)
Value:
MkLogHEX(NULL,__func__,data)
#define MkLogHEX(...)

Definition at line 1540 of file kernel_overload_mk.h.

◆ MkLogHEX_2

#define MkLogHEX_2 ( fmtobj,
data )
Value:
MkLogHEX(fmtobj,__func__,data)

Definition at line 1539 of file kernel_overload_mk.h.

◆ MkLogHEX_4X

#define MkLogHEX_4X ( fmtobj,
callfunc,
data,
len )
Value:
MkLogHEX_RT(MkOBJ(fmtobj),callfunc,data,len)

Definition at line 5028 of file LibMkKernel_mk.h.

◆ MkLogHEX_NULL

#define MkLogHEX_NULL ( ...)
Value:

Definition at line 1537 of file kernel_overload_mk.h.

◆ MkLogV

#define MkLogV ( ...)
Value:
MkLogV_RT(MK_RT_CALL __VA_ARGS__)
MK_EXTERN void MkLogV_RT(MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc, MK_DBG debug, MK_FST const printfmt,...)
write a printf style logging-message to MkLogFileC (default: stderr) using the internal format …

Definition at line 1542 of file kernel_overload_mk.h.

◆ MkLogV_1

#define MkLogV_1 ( printfmt,
... )
Value:
MkLogV(NULL,__func__,0,printfmt,__VA_ARGS__)

Definition at line 1545 of file kernel_overload_mk.h.

◆ MkLogV_2

#define MkLogV_2 ( fmtobj,
printfmt,
... )
Value:
MkLogV(fmtobj,__func__,0,printfmt,__VA_ARGS__)

Definition at line 1544 of file kernel_overload_mk.h.

◆ MkLogV_2X

#define MkLogV_2X ( x,
printfmt,
... )
Value:
MkLogV_2(MkOBJ(x),printfmt,__VA_ARGS__)
#define MkLogV_2(fmtobj, printfmt,...)

Definition at line 4944 of file LibMkKernel_mk.h.

◆ MkLogV_3

#define MkLogV_3 ( fmtobj,
callfunc,
printfmt,
... )
Value:
MkLogV(fmtobj,callfunc,0,printfmt,__VA_ARGS__)

Definition at line 1543 of file kernel_overload_mk.h.

◆ MkLogV_3X

#define MkLogV_3X ( x,
callfunc,
printfmt,
... )
Value:
MkLogV_3(MkOBJ(x),callfunc,printfmt,__VA_ARGS__)
#define MkLogV_3(fmtobj, callfunc, printfmt,...)

Definition at line 4943 of file LibMkKernel_mk.h.

◆ MkLogV_4M

#define MkLogV_4M ( x,
callfunc,
debug,
printfmt,
... )
Value:
MkLogV(MkObjN(x),callfunc,debug,printfmt,__VA_ARGS__)
MK_OBJN MkObjN(MK_MNGN mng)
(const) cast a unknown-object into an MkObjectS pointer or NULL if not possible

Definition at line 4941 of file LibMkKernel_mk.h.

◆ MkLogV_4X

#define MkLogV_4X ( x,
callfunc,
debug,
printfmt,
... )
Value:
MkLogV(MkOBJ(x),callfunc,debug,printfmt,__VA_ARGS__)

Definition at line 4942 of file LibMkKernel_mk.h.

◆ MkLogV_lvl

#define MkLogV_lvl ( x,
debug,
printfmt,
... )
Value:
MkLogV(MkOBJ(x),__func__,debug,printfmt,__VA_ARGS__)

Definition at line 4939 of file LibMkKernel_mk.h.

◆ MkLogV_NULL

#define MkLogV_NULL ( ...)
Value:

Definition at line 1541 of file kernel_overload_mk.h.

◆ MkLogVL

#define MkLogVL ( ...)
Value:
MkLogVL_RT(MK_RT_CALL __VA_ARGS__)
MK_EXTERN void MkLogVL_RT(MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc, MK_DBG debug, MK_FST const printfmt, va_list var_list)
write a vprintf style logging-message to MkLogFileC using the internal format …

Definition at line 1547 of file kernel_overload_mk.h.

◆ MkLogVL_2

#define MkLogVL_2 ( printfmt,
var_list )
Value:
MkLogVL(NULL,__func__,0,printfmt,var_list)
#define MkLogVL(...)

Definition at line 1550 of file kernel_overload_mk.h.

◆ MkLogVL_3

#define MkLogVL_3 ( fmtobj,
printfmt,
var_list )
Value:
MkLogVL(fmtobj,__func__,0,printfmt,var_list)

Definition at line 1549 of file kernel_overload_mk.h.

◆ MkLogVL_4

#define MkLogVL_4 ( fmtobj,
callfunc,
printfmt,
var_list )
Value:
MkLogVL(fmtobj,callfunc,0,printfmt,var_list)

Definition at line 1548 of file kernel_overload_mk.h.

◆ MkLogVL_5X

#define MkLogVL_5X ( fmtobj,
callfunc,
debug,
printfmt,
var_list )
Value:
MkLogVL(MkOBJ(fmtobj),callfunc,debug,printfmt,var_list)

Definition at line 4965 of file LibMkKernel_mk.h.

4965#define MkLogVL_5X(fmtobj,callfunc,debug,printfmt,var_list) \
4966 MkLogVL(MkOBJ(fmtobj),callfunc,debug,printfmt,var_list)

◆ MkLogVL_NULL

#define MkLogVL_NULL ( ...)
Value:

Definition at line 1546 of file kernel_overload_mk.h.

◆ MkLogW

#define MkLogW ( x,
callfunc,
_debug,
message )
Value:
MkLogC(MkOBJ(x),message,_debug,callfunc)

Definition at line 4919 of file LibMkKernel_mk.h.

◆ MkObjectLog

#define MkObjectLog ( ...)
Value:
MK_EXTERN void MkObjectLog_RT(MK_RT mkrt, MK_OBJN const obj, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
Log-Slot - log the entire object to the MkLogFileC (default: stderr) target …

Definition at line 1552 of file kernel_overload_mk.h.

◆ MkObjectLog_1

#define MkObjectLog_1 ( obj)
Value:
MkObjectLog(obj,NULL,0,__func__,0)
#define MkObjectLog(...)

Definition at line 1556 of file kernel_overload_mk.h.

◆ MkObjectLog_1X

#define MkObjectLog_1X ( x)
Value:
MkObjectLog(MkOBJ(x),NULL,0,__func__,0)

Definition at line 5098 of file LibMkKernel_mk.h.

◆ MkObjectLog_2

#define MkObjectLog_2 ( obj,
fmtobj )
Value:
MkObjectLog(obj,fmtobj,0,__func__,0)

Definition at line 1555 of file kernel_overload_mk.h.

◆ MkObjectLog_3

#define MkObjectLog_3 ( obj,
fmtobj,
debug )
Value:
MkObjectLog(obj,fmtobj,debug,__func__,0)

Definition at line 1554 of file kernel_overload_mk.h.

◆ MkObjectLog_4

#define MkObjectLog_4 ( obj,
fmtobj,
debug,
callfunc )
Value:
MkObjectLog(obj,fmtobj,debug,callfunc,0)

Definition at line 1553 of file kernel_overload_mk.h.

◆ MkObjectLog_NULL

#define MkObjectLog_NULL ( ...)
Value:

Definition at line 1551 of file kernel_overload_mk.h.

◆ MkObjectLogDetail

#define MkObjectLogDetail ( ...)
Value:
MK_EXTERN void MkObjectLogDetail_RT(MK_RT mkrt, MK_OBJN const obj, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
log the MkObjectS verbose into the MkLogFileC (default: stderr) …

Definition at line 1558 of file kernel_overload_mk.h.

◆ MkObjectLogDetail_1

#define MkObjectLogDetail_1 ( obj)
Value:
MkObjectLogDetail(obj,NULL,0,__func__,0)
#define MkObjectLogDetail(...)

Definition at line 1562 of file kernel_overload_mk.h.

◆ MkObjectLogDetail_1M

#define MkObjectLogDetail_1M ( m)
Value:
MkObjectLogDetail(MkObj(m),NULL,0,__func__,0)
MK_OBJ MkObj(MK_MNG mng)
cast a unknown-object into an MkObjectS pointer or NULL if not possible

Definition at line 5073 of file LibMkKernel_mk.h.

◆ MkObjectLogDetail_1X

#define MkObjectLogDetail_1X ( x)
Value:
MkObjectLogDetail(MkOBJ(x),NULL,0,__func__,0)

Definition at line 5072 of file LibMkKernel_mk.h.

◆ MkObjectLogDetail_2

#define MkObjectLogDetail_2 ( obj,
fmtobj )
Value:
MkObjectLogDetail(obj,fmtobj,0,__func__,0)

Definition at line 1561 of file kernel_overload_mk.h.

◆ MkObjectLogDetail_3

#define MkObjectLogDetail_3 ( obj,
fmtobj,
debug )
Value:
MkObjectLogDetail(obj,fmtobj,debug,__func__,0)

Definition at line 1560 of file kernel_overload_mk.h.

◆ MkObjectLogDetail_4

#define MkObjectLogDetail_4 ( obj,
fmtobj,
debug,
callfunc )
Value:
MkObjectLogDetail(obj,fmtobj,debug,callfunc,0)

Definition at line 1559 of file kernel_overload_mk.h.

◆ MkObjectLogDetail_NULL

#define MkObjectLogDetail_NULL ( ...)
Value:

Definition at line 1557 of file kernel_overload_mk.h.

◆ MkObjectLogSimple

#define MkObjectLogSimple ( ...)
Value:
MK_EXTERN void MkObjectLogSimple_RT(MK_RT mkrt, MK_OBJN const obj, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
log the MkObjectS into the MkLogFileC (default: stderr) …

Definition at line 1564 of file kernel_overload_mk.h.

◆ MkObjectLogSimple_1

#define MkObjectLogSimple_1 ( obj)
Value:
MkObjectLogSimple(obj,NULL,0,__func__,0)
#define MkObjectLogSimple(...)

Definition at line 1568 of file kernel_overload_mk.h.

◆ MkObjectLogSimple_1X

#define MkObjectLogSimple_1X ( x)
Value:
MkObjectLogSimple(MkOBJ(x),NULL,0,__func__,0)

Definition at line 5050 of file LibMkKernel_mk.h.

◆ MkObjectLogSimple_2

#define MkObjectLogSimple_2 ( obj,
fmtobj )
Value:
MkObjectLogSimple(obj,fmtobj,0,__func__,0)

Definition at line 1567 of file kernel_overload_mk.h.

◆ MkObjectLogSimple_3

#define MkObjectLogSimple_3 ( obj,
fmtobj,
debug )
Value:
MkObjectLogSimple(obj,fmtobj,debug,__func__,0)

Definition at line 1566 of file kernel_overload_mk.h.

◆ MkObjectLogSimple_4

#define MkObjectLogSimple_4 ( obj,
fmtobj,
debug,
callfunc )
Value:
MkObjectLogSimple(obj,fmtobj,debug,callfunc,0)

Definition at line 1565 of file kernel_overload_mk.h.

◆ MkObjectLogSimple_NULL

#define MkObjectLogSimple_NULL ( ...)
Value:

Definition at line 1563 of file kernel_overload_mk.h.

Function Documentation

◆ MkLogC_RT()

MK_EXTERN void MkLogC_RT ( MK_RT mkrt,
MK_OBJN fmtobj,
MK_STRN const message,
MK_DBG const debug,
MK_STRN const callfunc )

write a logging-message to MkLogFileC (default: stderr) using the internal format …

The logging is only done if 'MqDebug >= level' and 'MqIsSilent == MK_NO' using the following format:

C> (NAME:PID:THREADID) [YYYY-MM-DD:HH-MM-SS] [String|Binary-DEBUGLEVEL-CONTEXTID-REFCOUNT-CONTEXTPTR-prefix]: message

The message is build with snprintf and finally send with fputsn without newline '\n' character at the end. To add the newline or an other special-caracter use the '\xxx' syntax.

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[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)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)
[in]messagestring to log

◆ MkLogHEX_RT()

MK_EXTERN void MkLogHEX_RT ( MK_RT mkrt,
MK_OBJN fmtobj,
MK_STRN const callfunc,
MkBinaryR const data )

log binaray data as HEX into the MkLogFileC (default: stderr) …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[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)
[in]datathe binary data to log

◆ MkLogV_RT()

MK_EXTERN void MkLogV_RT ( MK_RT mkrt,
MK_OBJN fmtobj,
MK_STRN const callfunc,
MK_DBG debug,
MK_FST const printfmt,
... )

write a printf style logging-message to MkLogFileC (default: stderr) using the internal format …

Use the format and the restrictions from LogC.

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[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)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)
[in]printfmtis a c-string used as printf like format string

◆ MkLogVL_RT()

MK_EXTERN void MkLogVL_RT ( MK_RT mkrt,
MK_OBJN fmtobj,
MK_STRN const callfunc,
MK_DBG debug,
MK_FST const printfmt,
va_list var_list )

write a vprintf style logging-message to MkLogFileC using the internal format …

Use the format and the restrictions from LogC.

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[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)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)
[in]printfmtis a c-string used as printf like format string
[in]var_lista variable argument list object

◆ MkObjectLog_RT()

MK_EXTERN void MkObjectLog_RT ( MK_RT mkrt,
MK_OBJN const obj,
MK_OBJN fmtobj,
MK_DBG const debug,
MK_STRN const callfunc,
MK_I32 const lvl )

Log-Slot - log the entire object to the MkLogFileC (default: stderr) target …

Todo

log_doku

slot_doku

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]objthe MkObjectS instance to work on - a MANAGED OBJECT after type-check and able to be supported by the MkObjectS API
[in]fmtobjmanaged object used to format the log-message (default=MK_NULL → use default-format)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)
[in]callfunca user-defined postfix to identify the calling function or the environment (default=name-of-function)
[in]lvla user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0)
See also
MkBufferLog, MkBufferListLog, MkBufferStreamLog, ?MkLogFileLog, MkErrorLog, MkRuntimeLog, MkObjectLog

◆ MkObjectLogDetail_RT()

MK_EXTERN void MkObjectLogDetail_RT ( MK_RT mkrt,
MK_OBJN const obj,
MK_OBJN fmtobj,
MK_DBG const debug,
MK_STRN const callfunc,
MK_I32 const lvl )

log the MkObjectS verbose into the MkLogFileC (default: stderr) …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]objthe MkObjectS instance to work on - a MANAGED OBJECT after type-check and able to be supported by the MkObjectS API
[in]fmtobjmanaged object used to format the log-message (default=MK_NULL → use default-format)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)
[in]callfunca user-defined postfix to identify the calling function or the environment (default=name-of-function)
[in]lvla user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0)
See also
MkObjectC (runtime) void MkObjectLog(MK_OBJN const obj, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)

◆ MkObjectLogSimple_RT()

MK_EXTERN void MkObjectLogSimple_RT ( MK_RT mkrt,
MK_OBJN const obj,
MK_OBJN fmtobj,
MK_DBG const debug,
MK_STRN const callfunc,
MK_I32 const lvl )

log the MkObjectS into the MkLogFileC (default: stderr) …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]objthe MkObjectS instance to work on - a MANAGED OBJECT after type-check and able to be supported by the MkObjectS API
[in]fmtobjmanaged object used to format the log-message (default=MK_NULL → use default-format)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)
[in]callfunca user-defined postfix to identify the calling function or the environment (default=name-of-function)
[in]lvla user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0)
See also
MkObjectC