User Tools

Site Tools


projects:logger

Logger for embedded systems

Project under development

Requirements

Simple, Lightweight and Practical

Log:

  • Strings
  • Integers, Enums
  • Printfs
  • Structures

Implementation

Single logging function log() with variable number of arguments will:

  • Copy data into local buffer
  • Notify sink controller

Toolchain

Altered build process

  1. Create list of C files: log_listc.py > log_files.auto.h
  2. Preprocess C files gcc -E
  3. Parse C files looking for log() calls, identify arguments log_parsec.py > log_structure.auto.xml
  4. Merge xml files into zip log_zipxml.py
  5. (optional) Build binary object from zip to embed into binary log_pack.py > log_dictionary.auto.c
  6. Continue build process as usual
projects/logger.txt · Last modified: 2014/08/31 17:45 by mkucia