LogThat
Description
LogThat provides an easy to use interface for adding diagnostic information to the CPU’s logger. It wraps B&R’s ArEventLog library so that creating a logbook takes one line in _INIT, and writing an entry takes one function call from anywhere in the application. Messages can contain runtime values through a printf-style format string backed by StringExt.
Use Cases
- Recording machine events, faults, and diagnostics in a user logbook, optionally one that survives a restart
- Adding structured, greppable log entries to a subsystem without writing ArEventLog boilerplate
- Tracing state machine transitions automatically with the
logStateChangefunction block
Overview
- Usage
- Functions
- Structures
Creating loggers and writing entries
Functions and function blocks
Structures, enums, and constants