ExESDBGater.Messages.LoggingMessages (ex_esdb_gater v0.8.0)

Message definitions and helpers for the :ex_esdb_logging PubSub instance.

Handles log aggregation and distribution across the cluster.

Common Topics

  • "application_logs" - Application-level log messages
  • "system_logs" - System-level log messages
  • "error_logs" - Error and exception logs
  • "audit_logs" - Audit trail logs

Summary

Functions

Broadcast a log entry

Broadcast a log filter update

Broadcast a log rotation event

Broadcast a log summary

Create a LogEntry payload with current timestamp

Create a LogFilter payload with current timestamp

Create a LogRotation payload with current timestamp

Create a LogSummary payload with current timestamp

Validate and extract a secure message

Functions

broadcast_log_entry(topic, payload)

Broadcast a log entry

broadcast_log_filter(topic, payload)

Broadcast a log filter update

broadcast_log_rotation(topic, payload)

Broadcast a log rotation event

broadcast_log_summary(topic, payload)

Broadcast a log summary

log_entry(level, message, module, opts \\ [])

Create a LogEntry payload with current timestamp

log_filter(filter_type, filter_value, action, opts \\ [])

Create a LogFilter payload with current timestamp

log_rotation(log_type, old_file, new_file, opts \\ [])

Create a LogRotation payload with current timestamp

log_summary(time_period, log_counts, opts \\ [])

Create a LogSummary payload with current timestamp

secure_broadcast(topic, message)

validate_secure_message(arg1)

Validate and extract a secure message