cobaro_log Struct Reference

Log information structure. More...

#include <log.h>

Data Fields

uint32_t id
 Opaque header for use in identifying this object as a log message, when multiple structure types are eg.
uint32_t code
 Log code. Zero is successful.
struct cobaro_lognext
 Queue.
uint8_t level
 Log level, from cobaro_log_levels enumeration.
char pad [44]
 Pad to make us fit into 512 bytes exactly.
struct {
   uint8_t   type
 Value type discriminant.
   union {
      char   s [48]
 String value.
      int64_t   i
 Integer value.
      double   f
 Floating point value.
      uint32_t   ipv4
 IPv4 address (32 bit network format).
   }   v
 Value.
p [COBARO_LOG_PARAM_MAX]
 Array of parameters relevant to this log.

Detailed Description

Log information structure.

Can carry a log code, plus COBARO_LOG_PARAM_MAX parameters of variant types.


Field Documentation

uint32_t cobaro_log::id

Opaque header for use in identifying this object as a log message, when multiple structure types are eg.

delivered via the same queue.

Value type discriminant.

Legal values are defined in the cobaro_log_types enumeration.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 17 May 2015 for libcobaro-log0 by  doxygen 1.6.1