MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / FormatMetadata

Class FormatMetadata

runtime/Log.h:372–390  ·  view source on GitHub ↗

* Describes a unique log message within the user sources. The order in * which this structure appears in the log file determines the associated * logId. Following this structure are the source filename and * PrintFragments required for this message. */

Source from the content-addressed store, hash-verified

370 * PrintFragments required for this message.
371 */
372 struct FormatMetadata {
373 // Number of nibbles in the dynamic data stream used to pack() arguments
374 uint8_t numNibbles;
375
376 // Number of PrintFragments following this data structure
377 uint8_t numPrintFragments;
378
379 // Log level of the LOG statement in the original source file
380 uint8_t logLevel;
381
382 // Line number of the LOG statement in the original source file
383 uint32_t lineNumber;
384
385 // Number of bytes in filename[] (including the null character)
386 uint16_t filenameLength;
387
388 // Filename for the original source file containing the LOG statement
389 char filename[];
390 } __attribute__((packed));
391
392 /**
393 * Describes how to interpret the dynamic log stream and partially

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected