EasyLogger is a compact C and C++ logging library aimed at embedded and resource-constrained firmware. It supports leveled, filterable output to terminals, files, or on-device flash with optional plugins for rotation and async delivery.
Overview
EasyLogger emphasizes small ROM and RAM footprints while still offering leveled messages, tags, filters, and configurable output formats. Log levels follow an Android Logcat style scale from verbose through assert, and developers can tune colors or fonts per level in configuration headers.
Filtering can combine severity, tag names, and keywords so noisy firmware builds remain readable during bring-up. Static compile-time switches and runtime APIs let teams gate verbosity differently between development and production images.
Output sinks are pluggable: consoles for interactive debugging, files when a filesystem exists, or flash storage on bare-metal boards without disks. Optional File and Flash plugins add rotation, retention, and historical retrieval patterns demonstrated on RT-Thread/STM32 sample projects.
Documentation covers kernel APIs, porting notes, and plugin-specific guides so integrators adapt transports without forking core behavior.
Key features
- Leveled Android-style log output
- Tag, level, and keyword filters
- Compile-time and runtime switches
- Configurable format fields
- Terminal, file, and flash sinks
- Optional file rotation plugin
- Optional asynchronous output plugin
Use cases
- Firmware debug logging on MCUs
- Tagged module tracing in C apps
- Persisting logs to onboard flash
- Field diagnostics with file rotation