About Us
Museum

RFID Guardian Software:Library:Core modules:Logger

From RFID Guardian

RFID Guardian Software / Library / Core modules / Logger


Logger

The logger module is registered with the filter of RFID ports that must be monitored. Requests (and optionally responses) are logged in the latency, after a response (if any) has been sent by a spoofer.

The logger is implemented as an RFID port. This makes integration with the filter very easy: a request or response RFID frame is just written to the logger port. The implementation of the port writes a timestamp and the frame's symbol stream to the logger file. The format of the logger infrastructure also allows higher layers to write arbitrary data into the log.

There is a standalone application [test/log-reader test/log-reader ]that is used to browse a log file. The UI also has commands to browse a log file on the RFID Guardian, and echo back the human-readable log entries to the UI client.

API include/log/mrg_log.h , include/log/mrg_log_filter.h
Source [ src/log/mrg_log.c ], [ src/log/mrg_log_port.c ], [ src/log/mrg_log_filter.c ]