theKernel 10.0
Loading...
Searching...
No Matches
MkObjectC_Log_CC_API

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

+ Collaboration diagram for MkObjectC_Log_CC_API:

Functions

void ccmkkernel::MkObjectC::LogC (MK_STRN message, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION()) const
  C++: fmtobj.LogC(MK_STRN message, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION()) C-API
write a logging-message to MkLogFileC (default: stderr) using the internal format …
 
void ccmkkernel::MkObjectC::LogC (const std::string &message, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION()) const
  C++: fmtobj.LogC(MK_STRN message, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION()) C-API
write a logging-message to MkLogFileC (default: stderr) using the internal format …
 
void ccmkkernel::MkObjectC::LogHEX (MK_STRN callfunc, MK_BNP data) const
  C++: fmtobj.LogHEX(MK_STRN callfunc, MK_BNP data) C-API
log binaray data as HEX into the MkLogFileC (default: stderr) …
 
void ccmkkernel::MkObjectC::LogHEX (const std::string &callfunc, MK_BNP data) const
  C++: fmtobj.LogHEX(MK_STRN callfunc, MK_BNP data) C-API
log binaray data as HEX into the MkLogFileC (default: stderr) …
 
void ccmkkernel::MkObjectC::LogV (MK_STRN callfunc, MK_DBG debug, MK_FST printfmt,...) const
  C++: fmtobj.LogV(MK_STRN callfunc, MK_DBG debug, MK_FST printfmt, ... ) C-API
write a printf style logging-message to MkLogFileC (default: stderr) using the internal format …
 
void ccmkkernel::MkObjectC::LogV (const std::string &callfunc, MK_DBG debug, MK_FST printfmt,...) const
  C++: fmtobj.LogV(MK_STRN callfunc, MK_DBG debug, MK_FST printfmt, ... ) C-API
write a printf style logging-message to MkLogFileC (default: stderr) using the internal format …
 
void ccmkkernel::MkObjectC::LogVL (MK_STRN callfunc, MK_DBG debug, MK_FST printfmt, va_list var_list) const
  C++: fmtobj.LogVL(MK_STRN callfunc, MK_DBG debug, MK_FST printfmt, va_list var_list) C-API
write a vprintf style logging-message to MkLogFileC using the internal format …
 
void ccmkkernel::MkObjectC::LogVL (const std::string &callfunc, MK_DBG debug, MK_FST printfmt, va_list var_list) const
  C++: fmtobj.LogVL(MK_STRN callfunc, MK_DBG debug, MK_FST printfmt, va_list var_list) C-API
write a vprintf style logging-message to MkLogFileC using the internal format …
 
void ccmkkernel::MkObjectC::Log (const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: obj.Log(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
Log-Slot - log a summary of an object to the MkLogFileC (default: stderr) target …
 
void ccmkkernel::MkObjectC::Log (const MkObjectC &fmtobj, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: obj.Log(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
Log-Slot - log a summary of an object to the MkLogFileC (default: stderr) target …
 
void ccmkkernel::MkObjectC::LogLong (const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: obj.LogLong(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
void ccmkkernel::MkObjectC::LogLong (const MkObjectC &fmtobj, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: obj.LogLong(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
void ccmkkernel::MkObjectC::LogShort (const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: obj.LogShort(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
void ccmkkernel::MkObjectC::LogShort (const MkObjectC &fmtobj, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: obj.LogShort(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
void ccmkkernel::MkObjectC::LogType (const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: obj.LogType(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
 
void ccmkkernel::MkObjectC::LogType (const MkObjectC &fmtobj, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
  C++: obj.LogType(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 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)

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

◆ Log() [1/2]

void ccmkkernel::MkObjectC::Log ( const MkObjectC & fmtobj,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: obj.Log(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
Log-Slot - log a summary of an object to the MkLogFileC (default: stderr) target …

Definition at line 295 of file MkObjectC_inline_cc.hh.

295 {
296 MK_UNUSED auto obj = getOBJN();
297 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
298 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
299 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
300 MkObjectLog(obj, fmtobj_hdl, debug, callfunc, lvl);
301 }
#define MK_UNUSED
mark unnused variables and functions
int MK_DBG
debug-level data-type …
MK_OBJN getOBJN() const
(const) return the LibMsgqueObject from current MkObjectC instance
const struct MkObjectS * MK_OBJN
class-shortcut for const struct MkObjectS *, all const shortcut using the XX_YYYC syntax (only for pu...
#define MkObjectLog(...)
static MK_I32 MkRuntimeDebugGet(void)
get the MkRuntimeS::debug value …

◆ Log() [2/2]

void ccmkkernel::MkObjectC::Log ( const MkObjectC * fmtobj = NULL,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: obj.Log(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
Log-Slot - log a summary of an object to the MkLogFileC (default: stderr) target …

Definition at line 286 of file MkObjectC_inline_cc.hh.

286 {
287 MK_UNUSED auto obj = getOBJN();
288 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
289 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
290 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
291 MkObjectLog(obj, fmtobj_hdl, debug, callfunc, lvl);
292 }
MK_OBJN getOBJN__null_allow() const
(const) return the LibMsgqueObject from current MkObjectC instance

◆ LogC() [1/2]

void ccmkkernel::MkObjectC::LogC ( const std::string & message,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION() ) const
inline

C++: fmtobj.LogC(MK_STRN message, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION()) C-API
write a logging-message to MkLogFileC (default: stderr) using the internal format …

Definition at line 226 of file MkObjectC_inline_cc.hh.

226 {
227 MK_UNUSED auto fmtobj = getOBJN__null_allow();
228 const MK_STRN message_hdl = message.c_str();
229 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
230 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
231 MkLogC(fmtobj, message_hdl, debug, callfunc);
232 }
const MK_STRB * MK_STRN
constant string pointer data-type
#define MkLogC(...)

◆ LogC() [2/2]

void ccmkkernel::MkObjectC::LogC ( MK_STRN message,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION() ) const
inline

C++: fmtobj.LogC(MK_STRN message, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION()) C-API
write a logging-message to MkLogFileC (default: stderr) using the internal format …

Definition at line 218 of file MkObjectC_inline_cc.hh.

218 {
219 MK_UNUSED auto fmtobj = getOBJN__null_allow();
220 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
221 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
222 MkLogC(fmtobj, message, debug, callfunc);
223 }

◆ LogHEX() [1/2]

void ccmkkernel::MkObjectC::LogHEX ( const std::string & callfunc,
MK_BNP data ) const
inline

C++: fmtobj.LogHEX(MK_STRN callfunc, MK_BNP data) C-API
log binaray data as HEX into the MkLogFileC (default: stderr) …

Definition at line 242 of file MkObjectC_inline_cc.hh.

242 {
243 MK_UNUSED auto fmtobj = getOBJN__null_allow();
244 const MK_STRN callfunc_hdl = callfunc.c_str();
245 const MkBinaryR data_ref = MkBinaryCreate(data.first,data.second);
246 MkLogHEX(fmtobj, callfunc_hdl, data_ref);
247 }
static MkBinaryR MkBinaryCreate(MK_SIZE size, MK_BINN data)
create a binary from data and size ...
#define MkLogHEX(...)

◆ LogHEX() [2/2]

void ccmkkernel::MkObjectC::LogHEX ( MK_STRN callfunc,
MK_BNP data ) const
inline

C++: fmtobj.LogHEX(MK_STRN callfunc, MK_BNP data) C-API
log binaray data as HEX into the MkLogFileC (default: stderr) …

Definition at line 235 of file MkObjectC_inline_cc.hh.

235 {
236 MK_UNUSED auto fmtobj = getOBJN__null_allow();
237 const MkBinaryR data_ref = MkBinaryCreate(data.first,data.second);
238 MkLogHEX(fmtobj, callfunc, data_ref);
239 }

◆ LogLong() [1/2]

void ccmkkernel::MkObjectC::LogLong ( const MkObjectC & fmtobj,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: obj.LogLong(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …

Definition at line 313 of file MkObjectC_inline_cc.hh.

313 {
314 MK_UNUSED auto obj = getOBJN();
315 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
316 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
317 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
318 MkObjectLogLong(obj, fmtobj_hdl, debug, callfunc, lvl);
319 }
#define MkObjectLogLong(...)

◆ LogLong() [2/2]

void ccmkkernel::MkObjectC::LogLong ( const MkObjectC * fmtobj = NULL,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: obj.LogLong(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …

Definition at line 304 of file MkObjectC_inline_cc.hh.

304 {
305 MK_UNUSED auto obj = getOBJN();
306 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
307 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
308 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
309 MkObjectLogLong(obj, fmtobj_hdl, debug, callfunc, lvl);
310 }

◆ LogShort() [1/2]

void ccmkkernel::MkObjectC::LogShort ( const MkObjectC & fmtobj,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: obj.LogShort(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …

Definition at line 331 of file MkObjectC_inline_cc.hh.

331 {
332 MK_UNUSED auto obj = getOBJN();
333 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
334 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
335 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
336 MkObjectLogShort(obj, fmtobj_hdl, debug, callfunc, lvl);
337 }
#define MkObjectLogShort(...)

◆ LogShort() [2/2]

void ccmkkernel::MkObjectC::LogShort ( const MkObjectC * fmtobj = NULL,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: obj.LogShort(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …

Definition at line 322 of file MkObjectC_inline_cc.hh.

322 {
323 MK_UNUSED auto obj = getOBJN();
324 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
325 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
326 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
327 MkObjectLogShort(obj, fmtobj_hdl, debug, callfunc, lvl);
328 }

◆ LogType() [1/2]

void ccmkkernel::MkObjectC::LogType ( const MkObjectC & fmtobj,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: obj.LogType(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …

Definition at line 349 of file MkObjectC_inline_cc.hh.

349 {
350 MK_UNUSED auto obj = getOBJN();
351 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
352 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
353 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
354 MkObjectLogType(obj, fmtobj_hdl, debug, callfunc, lvl);
355 }
#define MkObjectLogType(...)

◆ LogType() [2/2]

void ccmkkernel::MkObjectC::LogType ( const MkObjectC * fmtobj = NULL,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: obj.LogType(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …

Definition at line 340 of file MkObjectC_inline_cc.hh.

340 {
341 MK_UNUSED auto obj = getOBJN();
342 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
343 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
344 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
345 MkObjectLogType(obj, fmtobj_hdl, debug, callfunc, lvl);
346 }

◆ LogV() [1/2]

void ccmkkernel::MkObjectC::LogV ( const std::string & callfunc,
MK_DBG debug,
MK_FST printfmt,
... ) const
inline

C++: fmtobj.LogV(MK_STRN callfunc, MK_DBG debug, MK_FST printfmt, ... ) C-API
write a printf style logging-message to MkLogFileC (default: stderr) using the internal format …

Definition at line 260 of file MkObjectC_inline_cc.hh.

260 {
261 MK_UNUSED auto fmtobj = getOBJN__null_allow();
262 const MK_STRN callfunc_hdl = callfunc.c_str();
263 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
264 va_list ap;
265 va_start (ap, printfmt);
266 MkLogVL(fmtobj, callfunc_hdl, debug, printfmt, ap);
267 va_end (ap);
268 }
#define MkLogVL(...)

◆ LogV() [2/2]

void ccmkkernel::MkObjectC::LogV ( MK_STRN callfunc,
MK_DBG debug,
MK_FST printfmt,
... ) const
inline

C++: fmtobj.LogV(MK_STRN callfunc, MK_DBG debug, MK_FST printfmt, ... ) C-API
write a printf style logging-message to MkLogFileC (default: stderr) using the internal format …

Definition at line 250 of file MkObjectC_inline_cc.hh.

250 {
251 MK_UNUSED auto fmtobj = getOBJN__null_allow();
252 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
253 va_list ap;
254 va_start (ap, printfmt);
255 MkLogVL(fmtobj, callfunc, debug, printfmt, ap);
256 va_end (ap);
257 }

◆ LogVL() [1/2]

void ccmkkernel::MkObjectC::LogVL ( const std::string & callfunc,
MK_DBG debug,
MK_FST printfmt,
va_list var_list ) const
inline

C++: fmtobj.LogVL(MK_STRN callfunc, MK_DBG debug, MK_FST printfmt, va_list var_list) C-API
write a vprintf style logging-message to MkLogFileC using the internal format …

Definition at line 278 of file MkObjectC_inline_cc.hh.

278 {
279 MK_UNUSED auto fmtobj = getOBJN__null_allow();
280 const MK_STRN callfunc_hdl = callfunc.c_str();
281 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
282 MkLogVL(fmtobj, callfunc_hdl, debug, printfmt, var_list);
283 }

◆ LogVL() [2/2]

void ccmkkernel::MkObjectC::LogVL ( MK_STRN callfunc,
MK_DBG debug,
MK_FST printfmt,
va_list var_list ) const
inline

C++: fmtobj.LogVL(MK_STRN callfunc, MK_DBG debug, MK_FST printfmt, va_list var_list) C-API
write a vprintf style logging-message to MkLogFileC using the internal format …

Definition at line 271 of file MkObjectC_inline_cc.hh.

271 {
272 MK_UNUSED auto fmtobj = getOBJN__null_allow();
273 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
274 MkLogVL(fmtobj, callfunc, debug, printfmt, var_list);
275 }