Eliot.Logger (Eliot v0.1.0)

View Source

Centralized logging for the Eliot IoT data ingestion system.

Provides structured logging with telemetry integration for comprehensive observability of device communications, data processing, and system events.

Summary

Functions

Returns a specification to start this module under a supervisor.

Logs device-specific events with standardized metadata.

Logs an error-level message with structured metadata.

Logs an info-level message with structured metadata.

Logs MQTT-related events with connection metadata.

Logs data processing events with performance metrics.

Logs a warning-level message with structured metadata.

Starts the logger GenServer.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

log_device_event(device_id, event_type, data \\ %{})

Logs device-specific events with standardized metadata.

log_error(message, metadata \\ %{})

Logs an error-level message with structured metadata.

log_info(message, metadata \\ %{})

Logs an info-level message with structured metadata.

log_mqtt_event(event_type, broker_info, data \\ %{})

Logs MQTT-related events with connection metadata.

log_processing_event(message_id, processing_time_ms, result)

Logs data processing events with performance metrics.

log_warning(message, metadata \\ %{})

Logs a warning-level message with structured metadata.

start_link(opts \\ [])

Starts the logger GenServer.