theKernel 10.0
Loading...
Searching...
No Matches
MkObjectC_Log_ATL_API

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

+ Collaboration diagram for MkObjectC_Log_ATL_API:

Functions

static OT_ProcRet atlmkkernel_MkObjectC_LogC (MkObjectC_ARGS)
  Atl: MkObjectC::LogC $fmtobj 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 atlmkkernel_MkObjectC_LogHEX (MkObjectC_ARGS)
  Atl: MkObjectC::LogHEX $fmtobj callfunc:string data:binary C-API
log binaray data as HEX into the MkLogFileC (default: stderr) …
 
static OT_ProcRet atlmkkernel_MkObjectC_Log (MkObjectC_ARGS)
  Atl: MkObjectC::Log $obj ?fmtobj:MkObjectC=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 atlmkkernel_MkObjectC_LogLong (MkObjectC_ARGS)
  Atl: MkObjectC::LogLong $obj ?fmtobj:MkObjectC=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 atlmkkernel_MkObjectC_LogShort (MkObjectC_ARGS)
  Atl: MkObjectC::LogShort $obj ?fmtobj:MkObjectC=NULL? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
static OT_ProcRet atlmkkernel_MkObjectC_LogType (MkObjectC_ARGS)
  Atl: MkObjectC::LogType $obj ?fmtobj:MkObjectC=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

◆ atlmkkernel_MkObjectC_Log()

static OT_ProcRet atlmkkernel_MkObjectC_Log ( MkObjectC_ARGS )
static

Atl: MkObjectC::Log $obj ?fmtobj:MkObjectC=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 585 of file MkObjectC_atl.c.

585 {
588 MK_OBJN fmtobj = NULL;
590 MK_DBG debug = 0;
592 MK_STRN callfunc = NULL;
594 MK_I32 lvl = 0;
597 if (debug > MkRuntimeDebugGet()) {
599 goto end;
600 }
601 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
602 MkObjectLog (hdl, fmtobj, debug, callfunc, lvl);
604 goto end;
605 error:
607 end:
610}
#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 …

◆ atlmkkernel_MkObjectC_LogC()

static OT_ProcRet atlmkkernel_MkObjectC_LogC ( MkObjectC_ARGS )
static

Atl: MkObjectC::LogC $fmtobj 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 539 of file MkObjectC_atl.c.

539 {
542 MK_STRN message = 0;
544 MK_DBG debug = 0;
546 MK_STRN callfunc = NULL;
549 if (debug > MkRuntimeDebugGet()) {
551 goto end;
552 }
553 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
554 MkLogC (hdl, message, debug, callfunc);
556 goto end;
557 error:
559 end:
562}
#define OT_CHECK_REQUIRED(val)
#define LogC_doc
#define OT_SETUP_hdl__null_allow
#define MkLogC(...)

◆ atlmkkernel_MkObjectC_LogHEX()

static OT_ProcRet atlmkkernel_MkObjectC_LogHEX ( MkObjectC_ARGS )
static

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

Definition at line 565 of file MkObjectC_atl.c.

565 {
568 MK_STRN callfunc = NULL;
570 MkBinaryR data = {0};
573 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
574 MkLogHEX (hdl, callfunc, data);
576 goto end;
577 error:
579 end:
582}
#define OT_CHECK__ME_REF_MkBinaryR(val)
#define LogHEX_doc
#define MkLogHEX(...)
binary data default format …

◆ atlmkkernel_MkObjectC_LogLong()

static OT_ProcRet atlmkkernel_MkObjectC_LogLong ( MkObjectC_ARGS )
static

Atl: MkObjectC::LogLong $obj ?fmtobj:MkObjectC=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 613 of file MkObjectC_atl.c.

613 {
616 MK_OBJN fmtobj = NULL;
618 MK_DBG debug = 0;
620 MK_STRN callfunc = NULL;
622 MK_I32 lvl = 0;
625 if (debug > MkRuntimeDebugGet()) {
627 goto end;
628 }
629 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
630 MkObjectLogLong (hdl, fmtobj, debug, callfunc, lvl);
632 goto end;
633 error:
635 end:
638}
#define LogLong_doc
#define MkObjectLogLong(...)

◆ atlmkkernel_MkObjectC_LogShort()

static OT_ProcRet atlmkkernel_MkObjectC_LogShort ( MkObjectC_ARGS )
static

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

Definition at line 641 of file MkObjectC_atl.c.

641 {
644 MK_OBJN fmtobj = NULL;
646 MK_DBG debug = 0;
648 MK_STRN callfunc = NULL;
650 MK_I32 lvl = 0;
653 if (debug > MkRuntimeDebugGet()) {
655 goto end;
656 }
657 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
658 MkObjectLogShort (hdl, fmtobj, debug, callfunc, lvl);
660 goto end;
661 error:
663 end:
666}
#define LogShort_doc
#define MkObjectLogShort(...)

◆ atlmkkernel_MkObjectC_LogType()

static OT_ProcRet atlmkkernel_MkObjectC_LogType ( MkObjectC_ARGS )
static

Atl: MkObjectC::LogType $obj ?fmtobj:MkObjectC=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 669 of file MkObjectC_atl.c.

669 {
672 MK_OBJN fmtobj = NULL;
674 MK_DBG debug = 0;
676 MK_STRN callfunc = NULL;
678 MK_I32 lvl = 0;
681 if (debug > MkRuntimeDebugGet()) {
683 goto end;
684 }
685 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
686 MkObjectLogType (hdl, fmtobj, debug, callfunc, lvl);
688 goto end;
689 error:
691 end:
694}
#define LogType_doc
#define MkObjectLogType(...)