universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: ucx: UcxLogger Struct Reference universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390:
universe@390:
universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390:
universe@390:
ucx universe@390:
universe@390:
UAP Common Extensions
universe@390:
universe@390:
universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390:
universe@390:
universe@390: universe@390: universe@390:
universe@390: universe@390:
universe@390: universe@390:
universe@390:
universe@390:
universe@390: Data Fields
universe@390:
universe@390:
UcxLogger Struct Reference
universe@390:
universe@390:
universe@390: universe@390:

The UCX Logger object. universe@390: More...

universe@390: universe@390:

#include <logging.h>

universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390: universe@390:

universe@390: Data Fields

void * stream
 The stream this logger writes its messages to. More...
 
write_func writer
 The write function that shall be used. More...
 
char * dateformat
 The date format for timestamp outputs including the delimiter (default: "%F %T %z "). More...
 
unsigned int level
 The level, this logger operates on. More...
 
unsigned int mask
 A configuration mask for automatic output. More...
 
UcxMaplevels
 A map of valid log levels for this logger. More...
 
universe@390:

Detailed Description

universe@390:

The UCX Logger object.

universe@390:

Field Documentation

universe@390: universe@390:

◆ dateformat

universe@390: universe@390:
universe@390:
universe@390: universe@390: universe@390: universe@390: universe@390:
char* UcxLogger::dateformat
universe@390:
universe@390: universe@390:

The date format for timestamp outputs including the delimiter (default: "%F %T %z ").

universe@390:
See also
UCX_LOGGER_TIMESTAMP
universe@390: universe@390:
universe@390:
universe@390: universe@390:

◆ level

universe@390: universe@390:
universe@390:
universe@390: universe@390: universe@390: universe@390: universe@390:
unsigned int UcxLogger::level
universe@390:
universe@390: universe@390:

The level, this logger operates on.

universe@390:

If a log command is issued, the message will only be logged, if the log level of the message is less or equal than the log level of the logger.

universe@390: universe@390:
universe@390:
universe@390: universe@390:

◆ levels

universe@390: universe@390:
universe@390:
universe@390: universe@390: universe@390: universe@390: universe@390:
UcxMap* UcxLogger::levels
universe@390:
universe@390: universe@390:

A map of valid log levels for this logger.

universe@390:

The keys represent all valid log levels and the values provide string representations, that are used, if the UCX_LOGGER_LEVEL flag is set.

universe@390:

The exact data types are unsigned int for the key and const char* for the value.

universe@390:
See also
UCX_LOGGER_LEVEL
universe@390: universe@390:
universe@390:
universe@390: universe@390:

◆ mask

universe@390: universe@390:
universe@390:
universe@390: universe@390: universe@390: universe@390: universe@390:
unsigned int UcxLogger::mask
universe@390:
universe@390: universe@390:

A configuration mask for automatic output.

universe@390:

For each flag that is set, the logger automatically outputs some extra information like the timestamp or the source file and line number. See the documentation for the flags for details.

universe@390: universe@390:
universe@390:
universe@390: universe@390:

◆ stream

universe@390: universe@390:
universe@390:
universe@390: universe@390: universe@390: universe@390: universe@390:
void* UcxLogger::stream
universe@390:
universe@390: universe@390:

The stream this logger writes its messages to.

universe@390: universe@390:
universe@390:
universe@390: universe@390:

◆ writer

universe@390: universe@390:
universe@390:
universe@390: universe@390: universe@390: universe@390: universe@390:
write_func UcxLogger::writer
universe@390:
universe@390: universe@390:

The write function that shall be used.

universe@390:

For standard file or stdout loggers this might be standard fwrite (default).

universe@390: universe@390:
universe@390:
universe@390:
The documentation for this struct was generated from the following file: universe@390:
universe@390: universe@390: universe@390: universe@390: