MkObjectC - log information to MkLogFileC (default: stderr) … More...
Macros | |
#define | MkDDInit const MK_I32 __dbg = MK_RT_REF.debug |
#define | MkDDInitNum(n) |
#define | MkDProtect(_debug) |
#define | MkDProtect2(_debug, _call) |
#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 | MkDbgV_2X(x, printfmt, ...) |
#define | MkDbgV_2O(o, printfmt, ...) |
#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 | MkLogHEX_4X(fmtobj, callfunc, data, len) |
#define | MkObjectLogShort_1X(x) |
#define | MkObjectLogShort_2Lvl(o, l) |
#define | MkObjectLogLong_1X(x) |
#define | MkObjectLogLong_1X(x) |
#define | MkObjectLogLong_1M(m) |
#define | MkObjectLogLong_1M(m) |
#define | MkObjectLog_1X(x) |
#define | MkObjectLog_2Lvl(o, l) |
Functions | |
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 … | |
void | MkDbgV_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc, FILE *FH, MK_FST const printfmt,...) |
write a printf style debug-message to FH using the internal format … | |
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 … | |
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 … | |
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) … | |
void | MkObjectLogShort_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) … | |
void | MkObjectLogLong_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) … | |
void | MkObjectLogType_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 tyoe of the MkObjectS into the MkLogFileC (default: stderr) … | |
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 a summary of an object to the MkLogFileC (default: stderr) target … | |
evaluate CODE in debug … | |
_debug | |
#define | MkDCheck(_debug) |
#define | MkDDCheck(_debug) |
log a plain string … | |||||||
| |||||||
#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 … | ||||||||||
| ||||||||||
#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 | MkObjectLogLong_NULL(...) |
#define | MkObjectLogLong(...) |
#define | MkObjectLogLong_4(obj, fmtobj, debug, callfunc) |
#define | MkObjectLogLong_3(obj, fmtobj, debug) |
#define | MkObjectLogLong_2(obj, fmtobj) |
#define | MkObjectLogLong_1(obj) |
#define | MkObjectLogShort_NULL(...) |
#define | MkObjectLogShort(...) |
#define | MkObjectLogShort_4(obj, fmtobj, debug, callfunc) |
#define | MkObjectLogShort_3(obj, fmtobj, debug) |
#define | MkObjectLogShort_2(obj, fmtobj) |
#define | MkObjectLogShort_1(obj) |
#define | MkObjectLogType_NULL(...) |
#define | MkObjectLogType(...) |
#define | MkObjectLogType_4(obj, fmtobj, debug, callfunc) |
#define | MkObjectLogType_3(obj, fmtobj, debug) |
#define | MkObjectLogType_2(obj, fmtobj) |
#define | MkObjectLogType_1(obj) |
MkObjectC - log information to MkLogFileC (default: stderr) …
The logging-target is set direct by RuntimeLogTargetSet 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:
[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 ) |
#define MkDbgV_2O | ( | o, | |
printfmt, | |||
... ) |
Definition at line 5405 of file LibMkKernel_mk.h.
#define MkDbgV_2X | ( | x, | |
printfmt, | |||
... ) |
Definition at line 5404 of file LibMkKernel_mk.h.
#define MkDCheck | ( | _debug | ) |
Definition at line 358 of file LibMkKernel_mk.h.
#define MkDDCheck | ( | _debug | ) |
Definition at line 359 of file LibMkKernel_mk.h.
#define MkDDInit const MK_I32 __dbg = MK_RT_REF.debug |
Definition at line 352 of file LibMkKernel_mk.h.
#define MkDDInitNum | ( | n | ) |
Definition at line 353 of file LibMkKernel_mk.h.
#define MkDDLogC | ( | x, | |
_debug, | |||
str ) |
Definition at line 372 of file LibMkKernel_mk.h.
#define MkDDLogV | ( | fmtobj, | |
_debug, | |||
printfmt, | |||
... ) |
Definition at line 387 of file LibMkKernel_mk.h.
#define MkDLogC | ( | x, | |
_debug, | |||
str ) |
Definition at line 370 of file LibMkKernel_mk.h.
#define MkDLogC_O | ( | fmtobj, | |
_debug, | |||
str ) |
Definition at line 367 of file LibMkKernel_mk.h.
#define MkDLogV | ( | x, | |
_debug, | |||
printfmt, | |||
... ) |
Definition at line 385 of file LibMkKernel_mk.h.
#define MkDLogV_O | ( | fmtobj, | |
_debug, | |||
printfmt, | |||
... ) |
Definition at line 382 of file LibMkKernel_mk.h.
#define MkDProtect | ( | _debug | ) |
Definition at line 391 of file LibMkKernel_mk.h.
#define MkDProtect2 | ( | _debug, | |
_call ) |
Definition at line 396 of file LibMkKernel_mk.h.
#define MkLogC | ( | ... | ) |
Definition at line 1595 of file kernel_overload_mk.h.
#define MkLogC_1 | ( | message | ) |
Definition at line 1598 of file kernel_overload_mk.h.
#define MkLogC_2 | ( | fmtobj, | |
message ) |
Definition at line 1597 of file kernel_overload_mk.h.
#define MkLogC_2X | ( | x, | |
message ) |
Definition at line 5382 of file LibMkKernel_mk.h.
#define MkLogC_3 | ( | fmtobj, | |
message, | |||
debug ) |
Definition at line 1596 of file kernel_overload_mk.h.
#define MkLogC_3X | ( | x, | |
message, | |||
debug ) |
Definition at line 5381 of file LibMkKernel_mk.h.
#define MkLogC_4X | ( | x, | |
message, | |||
debug, | |||
callfunc ) |
Definition at line 5380 of file LibMkKernel_mk.h.
#define MkLogC_NULL | ( | ... | ) |
Definition at line 1594 of file kernel_overload_mk.h.
#define MkLogHEX | ( | ... | ) |
Definition at line 1600 of file kernel_overload_mk.h.
#define MkLogHEX_1 | ( | data | ) |
Definition at line 1602 of file kernel_overload_mk.h.
#define MkLogHEX_2 | ( | fmtobj, | |
data ) |
Definition at line 1601 of file kernel_overload_mk.h.
#define MkLogHEX_4X | ( | fmtobj, | |
callfunc, | |||
data, | |||
len ) |
Definition at line 5467 of file LibMkKernel_mk.h.
#define MkLogHEX_NULL | ( | ... | ) |
Definition at line 1599 of file kernel_overload_mk.h.
#define MkLogV | ( | ... | ) |
Definition at line 1604 of file kernel_overload_mk.h.
#define MkLogV_1 | ( | printfmt, | |
... ) |
Definition at line 1607 of file kernel_overload_mk.h.
#define MkLogV_2 | ( | fmtobj, | |
printfmt, | |||
... ) |
Definition at line 1606 of file kernel_overload_mk.h.
#define MkLogV_2X | ( | x, | |
printfmt, | |||
... ) |
Definition at line 5430 of file LibMkKernel_mk.h.
#define MkLogV_3 | ( | fmtobj, | |
callfunc, | |||
printfmt, | |||
... ) |
Definition at line 1605 of file kernel_overload_mk.h.
#define MkLogV_3X | ( | x, | |
callfunc, | |||
printfmt, | |||
... ) |
Definition at line 5429 of file LibMkKernel_mk.h.
#define MkLogV_4M | ( | x, | |
callfunc, | |||
debug, | |||
printfmt, | |||
... ) |
Definition at line 5427 of file LibMkKernel_mk.h.
#define MkLogV_4X | ( | x, | |
callfunc, | |||
debug, | |||
printfmt, | |||
... ) |
Definition at line 5428 of file LibMkKernel_mk.h.
#define MkLogV_lvl | ( | x, | |
debug, | |||
printfmt, | |||
... ) |
Definition at line 5425 of file LibMkKernel_mk.h.
#define MkLogV_NULL | ( | ... | ) |
Definition at line 1603 of file kernel_overload_mk.h.
#define MkLogVL | ( | ... | ) |
Definition at line 1609 of file kernel_overload_mk.h.
#define MkLogVL_2 | ( | printfmt, | |
var_list ) |
Definition at line 1612 of file kernel_overload_mk.h.
#define MkLogVL_3 | ( | fmtobj, | |
printfmt, | |||
var_list ) |
Definition at line 1611 of file kernel_overload_mk.h.
#define MkLogVL_4 | ( | fmtobj, | |
callfunc, | |||
printfmt, | |||
var_list ) |
Definition at line 1610 of file kernel_overload_mk.h.
#define MkLogVL_5X | ( | fmtobj, | |
callfunc, | |||
debug, | |||
printfmt, | |||
var_list ) |
Definition at line 5451 of file LibMkKernel_mk.h.
#define MkLogVL_NULL | ( | ... | ) |
Definition at line 1608 of file kernel_overload_mk.h.
#define MkLogW | ( | x, | |
callfunc, | |||
_debug, | |||
message ) |
Definition at line 5383 of file LibMkKernel_mk.h.
#define MkObjectLog | ( | ... | ) |
Definition at line 1614 of file kernel_overload_mk.h.
#define MkObjectLog_1 | ( | obj | ) |
Definition at line 1618 of file kernel_overload_mk.h.
#define MkObjectLog_1X | ( | x | ) |
Definition at line 5623 of file LibMkKernel_mk.h.
#define MkObjectLog_2 | ( | obj, | |
fmtobj ) |
Definition at line 1617 of file kernel_overload_mk.h.
#define MkObjectLog_2Lvl | ( | o, | |
l ) |
Definition at line 5624 of file LibMkKernel_mk.h.
#define MkObjectLog_3 | ( | obj, | |
fmtobj, | |||
debug ) |
Definition at line 1616 of file kernel_overload_mk.h.
#define MkObjectLog_4 | ( | obj, | |
fmtobj, | |||
debug, | |||
callfunc ) |
Definition at line 1615 of file kernel_overload_mk.h.
#define MkObjectLog_NULL | ( | ... | ) |
Definition at line 1613 of file kernel_overload_mk.h.
#define MkObjectLogLong | ( | ... | ) |
Definition at line 1620 of file kernel_overload_mk.h.
#define MkObjectLogLong_1 | ( | obj | ) |
Definition at line 1624 of file kernel_overload_mk.h.
#define MkObjectLogLong_1M | ( | m | ) |
Definition at line 5513 of file LibMkKernel_mk.h.
#define MkObjectLogLong_1M | ( | m | ) |
Definition at line 5513 of file LibMkKernel_mk.h.
#define MkObjectLogLong_1X | ( | x | ) |
Definition at line 5512 of file LibMkKernel_mk.h.
#define MkObjectLogLong_1X | ( | x | ) |
Definition at line 5512 of file LibMkKernel_mk.h.
#define MkObjectLogLong_2 | ( | obj, | |
fmtobj ) |
Definition at line 1623 of file kernel_overload_mk.h.
#define MkObjectLogLong_3 | ( | obj, | |
fmtobj, | |||
debug ) |
Definition at line 1622 of file kernel_overload_mk.h.
#define MkObjectLogLong_4 | ( | obj, | |
fmtobj, | |||
debug, | |||
callfunc ) |
Definition at line 1621 of file kernel_overload_mk.h.
#define MkObjectLogLong_NULL | ( | ... | ) |
Definition at line 1619 of file kernel_overload_mk.h.
#define MkObjectLogShort | ( | ... | ) |
Definition at line 1626 of file kernel_overload_mk.h.
#define MkObjectLogShort_1 | ( | obj | ) |
Definition at line 1630 of file kernel_overload_mk.h.
#define MkObjectLogShort_1X | ( | x | ) |
Definition at line 5489 of file LibMkKernel_mk.h.
#define MkObjectLogShort_2 | ( | obj, | |
fmtobj ) |
Definition at line 1629 of file kernel_overload_mk.h.
#define MkObjectLogShort_2Lvl | ( | o, | |
l ) |
Definition at line 5490 of file LibMkKernel_mk.h.
#define MkObjectLogShort_3 | ( | obj, | |
fmtobj, | |||
debug ) |
Definition at line 1628 of file kernel_overload_mk.h.
#define MkObjectLogShort_4 | ( | obj, | |
fmtobj, | |||
debug, | |||
callfunc ) |
Definition at line 1627 of file kernel_overload_mk.h.
#define MkObjectLogShort_NULL | ( | ... | ) |
Definition at line 1625 of file kernel_overload_mk.h.
#define MkObjectLogType | ( | ... | ) |
Definition at line 1632 of file kernel_overload_mk.h.
#define MkObjectLogType_1 | ( | obj | ) |
Definition at line 1636 of file kernel_overload_mk.h.
#define MkObjectLogType_2 | ( | obj, | |
fmtobj ) |
Definition at line 1635 of file kernel_overload_mk.h.
#define MkObjectLogType_3 | ( | obj, | |
fmtobj, | |||
debug ) |
Definition at line 1634 of file kernel_overload_mk.h.
#define MkObjectLogType_4 | ( | obj, | |
fmtobj, | |||
debug, | |||
callfunc ) |
Definition at line 1633 of file kernel_overload_mk.h.
#define MkObjectLogType_NULL | ( | ... | ) |
Definition at line 1631 of file kernel_overload_mk.h.
void MkDbgV_RT | ( | MK_RT | mkrt, |
MK_OBJN | fmtobj, | ||
MK_STRN const | callfunc, | ||
FILE * | FH, | ||
MK_FST const | printfmt, | ||
... ) |
write a printf style debug-message to FH using the internal format …
Use the format and the restrictions from LogC.
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[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] | FH | the filehandle to write into |
[in] | printfmt | is a c-string used as printf like format string |
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 '
' and 'MqDebug
>= level
using the following format: MqIsSilent
== MK_NO
'
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.
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[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 ) |
[in] | message | string to log |
log binaray data as HEX into the MkLogFileC (default: stderr) …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[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] | data | the binary data to log |
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.
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[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 ) |
[in] | printfmt | is a c-string used as printf like format string |
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.
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[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 ) |
[in] | printfmt | is a c-string used as printf like format string |
[in] | var_list | a variable argument list object |
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 a summary of an object to the MkLogFileC (default: stderr) target …
The Log slot is used to write a summary of an object to the logging-device defined by MkLogFileOpen and default to stderr.
The Log slot is calling the Log slot of the obj which is defined at object-setup (example: MkBufferC)
The log-format depending on the obeject to log. A common-prefix and a object-specific-postfix is usually available
require "rbmkkernel" include MkKernel buf = MkBufferC.CreateSTR("Hallo World") buf.Log() ---------------------------------------------------- X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: BUFFER [0x1ccd500] { cursize=11 } | | | | | | | | | | | | | | | | | | | | | ^ specific: START of the MkBufferC-log | | | | | | | | | ^ calling function | | | | | | | | ^ MqContextC: pointer | | | | | | | ^ ref-count | | | | | | ^ MqContextC: context-id | | | | | ^ debug-level | | | | ^ MqContextC: S)tring, B)inary, X)none | | | ^ thread-id | | ^ process-id | ^ class-name or MqContextC: object-name ^ MqContextC: S)erver, C)hild or X)none X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | OBJECT [0x1ccd500] { check=Y, netHdl=0, refCnt=1, isLocal=Y, sig=59b30440, objRt=0x1cc9ef0 } ^ common : START of the MkObjectC-log X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | SELF { self=0x7fd7690d82a0, selfCreated=Y, selfRef=0 } X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | TYPE [MkBuffer64C] { noSelf=N, delCbCnt=0, typsize=320 } ^ common: start of the type-log X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | OBJECT { type=MkTypeC, ptr=0x1ccaad0, self=(nil), refCnt=1000005, isLocal=N } X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | obj { sig=0x59b30440, mask=0xffffffc0, size=184 } X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | constrF=N, destrF=Y, dupF=Y, dup2F=Y, mergeF=Y, resetF=Y, logF=Y X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | selfCrF=Y, selfDeF=Y, selfUlF=Y, allocF=Y, freeF=Y X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | BASE [MkBufferC] { noSelf=N, delCbCnt=0, typsize=320 } ^ common: start of the base-type-log (multiple times until 'MkTypeDefC' X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | OBJECT { type=MkTypeC, ptr=0x1cca990, self=(nil), refCnt=1000009, isLocal=N } X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | obj { sig=0x59b30400, mask=0xfffffc00, size=120 } X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | constrF=N, destrF=Y, dupF=Y, dup2F=Y, mergeF=Y, resetF=Y, logF=Y X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | selfCrF=Y, selfDeF=Y, selfUlF=Y, allocF=N, freeF=N X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | BASE [MkObjectC] { noSelf=N, delCbCnt=0, typsize=320 } X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | OBJECT { type=MkTypeC, ptr=0x1cca850, self=(nil), refCnt=1000008, isLocal=N } X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | obj { sig=0x59b30000, mask=0xffff0000, size=88 } X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | constrF=N, destrF=Y, dupF=N, dup2F=Y, mergeF=N, resetF=N, logF=Y X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | selfCrF=Y, selfDeF=Y, selfUlF=Y, allocF=N, freeF=N X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | BASE [MkTypeDefC] { check=Y, ptr=0x1ccc3d0, refCnt=1000000, self=(nil) } X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | storage { first=0x1ccd578(ILS=Y), size=63, doFree=N } ^ specific : START of the MkBufferC-data-log X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | ils { size=64, offset=120 } X> {MkBuffer64C :pid(53689):tid(0x7fd7844b4740):X:dlv(0):ctxId( 0):rc(1):ctx(0x1ccd500 ):<main> }: | STRT : 11 : Hallo World ----------------------------------------------------
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | obj | the MkObjectS instance to work on - a MANAGED OBJECT after type-check and able to be supported by the MkObjectS API |
[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 ) |
void MkObjectLogLong_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) …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | obj | the MkObjectS instance to work on - a MANAGED OBJECT after type-check and able to be supported by the MkObjectS API |
[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 ) |
void MkObjectLogShort_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) …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | obj | the MkObjectS instance to work on - a MANAGED OBJECT after type-check and able to be supported by the MkObjectS API |
[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 ) |
void MkObjectLogType_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 tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | obj | the MkObjectS instance to work on - a MANAGED OBJECT after type-check and able to be supported by the MkObjectS API |
[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 ) |