mahos.node.log_broker.LogBroker#

class mahos.node.log_broker.LogBroker(gconf: dict, name, context=None)#

Log broker node.

Parameters:
  • xpub_endpoint (str) – XPUB endpoint address for log subscribers.

  • xsub_endpoint (str) – XSUB endpoint address for log publishers.

  • file (bool) – Enable file logging when True.

  • file_name (str) – Optional explicit path to the log file. If omitted, an auto-generated file name is used.

__init__(gconf: dict, name, context=None)#

Methods

__init__(gconf, name[, context])

close_resources()

Close custom resources.

log_mahos_runtime_info()

Log mahos runtime info to stdout and file (if enabled).

xsub_handler(msg)

Handle XPUB: write log to file when conf["file"] is True.

Attributes