theKernel 10.0
Loading...
Searching...
No Matches
MkObjectC_Log_PY_API

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

+ Collaboration diagram for MkObjectC_Log_PY_API:

Functions

static OT_ProcRet pymkkernel_MkObjectC_LogC (MkObjectC_ARGS)
  Python: 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 pymkkernel_MkObjectC_LogHEX (MkObjectC_ARGS)
  Python: fmtobj.LogHEX(callfunc:string, data:binary) C-API
log binaray data as HEX into the MkLogFileC (default: stderr) …
 
static OT_ProcRet pymkkernel_MkObjectC_Log (MkObjectC_ARGS)
  Python: obj.Log(?fmtobj:MkObjectC=None?, ?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 pymkkernel_MkObjectC_LogLong (MkObjectC_ARGS)
  Python: obj.LogLong(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
static OT_ProcRet pymkkernel_MkObjectC_LogShort (MkObjectC_ARGS)
  Python: obj.LogShort(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
static OT_ProcRet pymkkernel_MkObjectC_LogType (MkObjectC_ARGS)
  Python: obj.LogType(?fmtobj:MkObjectC=None?, ?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=None → use default-format)
[in]callfunca user-defined postfix to identify the calling-function or the environment (default = name-of-function, None = resolve-own-name)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)

Function Documentation

◆ pymkkernel_MkObjectC_Log()

static OT_ProcRet pymkkernel_MkObjectC_Log ( MkObjectC_ARGS )
static

Python: obj.Log(?fmtobj:MkObjectC=None?, ?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 577 of file MkObjectC_py.c.

577 {
580 MK_OBJN fmtobj = NULL;
582 MK_DBG debug = 0;
584 MK_STRN callfunc = NULL;
586 MK_I32 lvl = 0;
589 if (debug > MkRuntimeDebugGet()) {
591 goto end;
592 }
593 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
594 MkObjectLog (hdl, fmtobj, debug, callfunc, lvl);
596 goto end;
597 error:
599 end:
602}
#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 …

◆ pymkkernel_MkObjectC_LogC()

static OT_ProcRet pymkkernel_MkObjectC_LogC ( MkObjectC_ARGS )
static

Python: 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 531 of file MkObjectC_py.c.

531 {
534 MK_STRN message = 0;
536 MK_DBG debug = 0;
538 MK_STRN callfunc = NULL;
541 if (debug > MkRuntimeDebugGet()) {
543 goto end;
544 }
545 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
546 MkLogC (hdl, message, debug, callfunc);
548 goto end;
549 error:
551 end:
554}
#define OT_CHECK_REQUIRED(val)
#define LogC_doc
#define OT_SETUP_hdl__null_allow
#define MkLogC(...)

◆ pymkkernel_MkObjectC_LogHEX()

static OT_ProcRet pymkkernel_MkObjectC_LogHEX ( MkObjectC_ARGS )
static

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

Definition at line 557 of file MkObjectC_py.c.

557 {
560 MK_STRN callfunc = NULL;
562 MkBinaryR data = {0};
565 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
566 MkLogHEX (hdl, callfunc, data);
568 goto end;
569 error:
571 end:
574}
#define OT_CHECK__ME_REF_MkBinaryR(val)
#define LogHEX_doc
#define MkLogHEX(...)
binary data default format …

◆ pymkkernel_MkObjectC_LogLong()

static OT_ProcRet pymkkernel_MkObjectC_LogLong ( MkObjectC_ARGS )
static

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

Definition at line 605 of file MkObjectC_py.c.

605 {
608 MK_OBJN fmtobj = NULL;
610 MK_DBG debug = 0;
612 MK_STRN callfunc = NULL;
614 MK_I32 lvl = 0;
617 if (debug > MkRuntimeDebugGet()) {
619 goto end;
620 }
621 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
622 MkObjectLogLong (hdl, fmtobj, debug, callfunc, lvl);
624 goto end;
625 error:
627 end:
630}
#define LogLong_doc
#define MkObjectLogLong(...)

◆ pymkkernel_MkObjectC_LogShort()

static OT_ProcRet pymkkernel_MkObjectC_LogShort ( MkObjectC_ARGS )
static

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

Definition at line 633 of file MkObjectC_py.c.

633 {
636 MK_OBJN fmtobj = NULL;
638 MK_DBG debug = 0;
640 MK_STRN callfunc = NULL;
642 MK_I32 lvl = 0;
645 if (debug > MkRuntimeDebugGet()) {
647 goto end;
648 }
649 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
650 MkObjectLogShort (hdl, fmtobj, debug, callfunc, lvl);
652 goto end;
653 error:
655 end:
658}
#define LogShort_doc
#define MkObjectLogShort(...)

◆ pymkkernel_MkObjectC_LogType()

static OT_ProcRet pymkkernel_MkObjectC_LogType ( MkObjectC_ARGS )
static

Python: obj.LogType(?fmtobj:MkObjectC=None?, ?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 661 of file MkObjectC_py.c.

661 {
664 MK_OBJN fmtobj = NULL;
666 MK_DBG debug = 0;
668 MK_STRN callfunc = NULL;
670 MK_I32 lvl = 0;
673 if (debug > MkRuntimeDebugGet()) {
675 goto end;
676 }
677 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
678 MkObjectLogType (hdl, fmtobj, debug, callfunc, lvl);
680 goto end;
681 error:
683 end:
686}
#define LogType_doc
#define MkObjectLogType(...)