Skip to content

Data Logging

pablop edited this page Oct 23, 2026 · 4 revisions

The emulator's usability would be extremely reduced without proper data logging which allows users to analyze the performance for a given network configuration. As the emulator is designed to run in real-time, the logging overhead should be reduced to the minimum. We used spdlog, a fast C++ implementation for data logging to text files.

We implemented a log handling class, log_handler, which instantiates a spdlog logger agent. To avoid increasing the overhead, we recommend using high logging periods when running real-time experiments. The emulator logs mean values between the logging periods rather than only quantized instantaneous values.

The associated text logging configuration parameters are:

[UE]
# ...
log_freq: 100
log_ue: true
log_quality: true
log_traffic: true
log_mobility: true

[MACLayer]
# ...
log_freq: 10
log_mac: true

Which define:

  • log_freq: data is logged according to this period in ms.
  • log_ue: enable/disable UE logging.
  • log_quality: enable/disable PHY logging.
  • log_traffic: enable/disable traffic logging.
  • log_mobility: enable/disable mobility model logging.
  • log_mac: enable/disable MAC layer logging.

For live dashboards and queue-level observability, FikoRE also includes a structured monitoring system with UDP output. See Monitoring and Dashboard.

Watching a run live

Besides the logs, the control API serves a web dashboard that consumes the same Influx line protocol over UDP: telemetry panels, the UE trajectory and a control panel. See Web Dashboard and Monitoring and Dashboard. It subscribes to an extra output in [Monitoring] and does not replace the one feeding Telegraf.

For offline runs the logs are the better tool: they are deterministic and py_analyzers/draw_ue.py and draw_mac.py read them.

Clone this wiki locally