Lightweight logging for embedded microcontrollers.
uLog provides a structured logging mechanism for embedded microcontrollers or any system with limited resources.
It inherits the some concepts behind the popular Log4c and Log4j platforms, but with lower overhead.
Some features of uLog:
- uLog is easy to incorporate into nearly any environment, comprising one header file and one source file, and is written in pure C.
- uLog provides familiar severity levels (CRITICAL, ERROR, WARNING, INFO, DEBUG, TRACE).
- uLog supports multiple user-defined outputs (console, log file, in-memory buffer, etc), each with its own reporting threshold level.
- uLog is “aggressively standalone” with minimal dependencies, requiring only stdio.h, string.h and stdarg.h.
- uLog gets out of your way when you’re not using it: if ULOG_ENABLED is undefined at compile time, no logging code is generated.
- uLog is well tested. See the accompanying ulog_test.c file for details.
评论 ( 0 )