theKernel 10.0
Loading...
Searching...
No Matches
MkObjectC_Log_TCL_API

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

+ Collaboration diagram for MkObjectC_Log_TCL_API:

Functions

static OT_ProcRet tclmkkernel_MkObjectC_LogC (MkObjectC_ARGS)
  Tcl: $fmtobj LogC message:string ?debug:int32=0? ?callfunc:string="MK_NULL"? C-API
write a logging-message to MkLogFileC (default: stderr) using the internal format …
 
static OT_ProcRet tclmkkernel_MkObjectC_LogHEX (MkObjectC_ARGS)
  Tcl: $fmtobj LogHEX callfunc:string data:binary C-API
log binaray data as HEX into the MkLogFileC (default: stderr) …
 
static OT_ProcRet tclmkkernel_MkObjectC_Log (MkObjectC_ARGS)
  Tcl: $obj Log ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
Log-Slot - log a summary of an object to the MkLogFileC (default: stderr) target …
 
static OT_ProcRet tclmkkernel_MkObjectC_LogLong (MkObjectC_ARGS)
  Tcl: $obj LogLong ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
static OT_ProcRet tclmkkernel_MkObjectC_LogShort (MkObjectC_ARGS)
  Tcl: $obj LogShort ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
static OT_ProcRet tclmkkernel_MkObjectC_LogType (MkObjectC_ARGS)
  Tcl: $obj LogType ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
 

Detailed Description

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:

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

◆ tclmkkernel_MkObjectC_Log()

static OT_ProcRet tclmkkernel_MkObjectC_Log ( MkObjectC_ARGS )
static

Tcl: $obj Log ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
Log-Slot - log a summary of an object to the MkLogFileC (default: stderr) target …

Definition at line 608 of file MkObjectC_tcl.c.

608 {
611 MK_OBJN fmtobj = NULL;
613 MK_DBG debug = 0;
615 MK_STRN callfunc = NULL;
617 MK_I32 lvl = 0;
620 if (debug > MkRuntimeDebugGet()) {
622 goto end;
623 }
624 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
625 MkObjectLog (hdl, fmtobj, debug, callfunc, lvl);
627 goto end;
628 error:
630 end:
633}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_NI4(val)
#define OT_retObj_SET_Error
#define OT_FRAME_CLEANUP
#define OT_retObj_SET_None
#define OT_retObj_RETURN
#define OT_GET_CALL_PROC
#define OT_CHECK_OPTIONAL(val)
#define OT_CHECK_NOARGS
#define OT_CHECK_STRN(val)
#define OT_SETUP_hdl
#define Log_doc
#define MK_NULL_YES
flag, allow NULL
const MK_STRB * MK_STRN
constant string pointer data-type
signed int MK_I32
4 byte integer data-type
int MK_DBG
debug-level data-type …
#define MkObjectLog(...)
static bool MkSysStringIsNULL(MK_STRN str)
test if string is NULL or EMPTY …
static MK_I32 MkRuntimeDebugGet(void)
get the MkRuntimeS::debug value …
#define OT_CHECK_OBJN(val, nullB)
object header …

◆ tclmkkernel_MkObjectC_LogC()

static OT_ProcRet tclmkkernel_MkObjectC_LogC ( MkObjectC_ARGS )
static

Tcl: $fmtobj LogC message:string ?debug:int32=0? ?callfunc:string="MK_NULL"? C-API
write a logging-message to MkLogFileC (default: stderr) using the internal format …

Definition at line 562 of file MkObjectC_tcl.c.

562 {
565 MK_STRN message = 0;
567 MK_DBG debug = 0;
569 MK_STRN callfunc = NULL;
572 if (debug > MkRuntimeDebugGet()) {
574 goto end;
575 }
576 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
577 MkLogC (hdl, message, debug, callfunc);
579 goto end;
580 error:
582 end:
585}
#define OT_CHECK_REQUIRED(val)
#define LogC_doc
#define OT_SETUP_hdl__null_allow
#define MkLogC(...)

◆ tclmkkernel_MkObjectC_LogHEX()

static OT_ProcRet tclmkkernel_MkObjectC_LogHEX ( MkObjectC_ARGS )
static

Tcl: $fmtobj LogHEX callfunc:string data:binary C-API
log binaray data as HEX into the MkLogFileC (default: stderr) …

Definition at line 588 of file MkObjectC_tcl.c.

588 {
591 MK_STRN callfunc = NULL;
593 MkBinaryR data = {0};
596 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
597 MkLogHEX (hdl, callfunc, data);
599 goto end;
600 error:
602 end:
605}
#define OT_CHECK__ME_REF_MkBinaryR(val)
#define LogHEX_doc
#define MkLogHEX(...)
binary data default format …

◆ tclmkkernel_MkObjectC_LogLong()

static OT_ProcRet tclmkkernel_MkObjectC_LogLong ( MkObjectC_ARGS )
static

Tcl: $obj LogLong ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …

Definition at line 636 of file MkObjectC_tcl.c.

636 {
639 MK_OBJN fmtobj = NULL;
641 MK_DBG debug = 0;
643 MK_STRN callfunc = NULL;
645 MK_I32 lvl = 0;
648 if (debug > MkRuntimeDebugGet()) {
650 goto end;
651 }
652 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
653 MkObjectLogLong (hdl, fmtobj, debug, callfunc, lvl);
655 goto end;
656 error:
658 end:
661}
#define LogLong_doc
#define MkObjectLogLong(...)

◆ tclmkkernel_MkObjectC_LogShort()

static OT_ProcRet tclmkkernel_MkObjectC_LogShort ( MkObjectC_ARGS )
static

Tcl: $obj LogShort ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MkObjectS into the MkLogFileC (default: stderr) …

Definition at line 664 of file MkObjectC_tcl.c.

664 {
667 MK_OBJN fmtobj = NULL;
669 MK_DBG debug = 0;
671 MK_STRN callfunc = NULL;
673 MK_I32 lvl = 0;
676 if (debug > MkRuntimeDebugGet()) {
678 goto end;
679 }
680 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
681 MkObjectLogShort (hdl, fmtobj, debug, callfunc, lvl);
683 goto end;
684 error:
686 end:
689}
#define LogShort_doc
#define MkObjectLogShort(...)

◆ tclmkkernel_MkObjectC_LogType()

static OT_ProcRet tclmkkernel_MkObjectC_LogType ( MkObjectC_ARGS )
static

Tcl: $obj LogType ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …

Definition at line 692 of file MkObjectC_tcl.c.

692 {
695 MK_OBJN fmtobj = NULL;
697 MK_DBG debug = 0;
699 MK_STRN callfunc = NULL;
701 MK_I32 lvl = 0;
704 if (debug > MkRuntimeDebugGet()) {
706 goto end;
707 }
708 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
709 MkObjectLogType (hdl, fmtobj, debug, callfunc, lvl);
711 goto end;
712 error:
714 end:
717}
#define LogType_doc
#define MkObjectLogType(...)