Class: Protege::EventLoggerHook

Inherits:
Hook
  • Object
show all
Defined in:
app/hooks/protege/event_logger_hook.rb

Overview

Built-in event logger hook. Subscribes to the full lifecycle of Protege events and writes human-readable log lines to the configured Protege.configuration.logger, giving operators a trace of each agent run.

Subclassing Protege::Hook means the engine wires these handlers onto the event bus once at boot; each on block receives a typed Protege::Event and runs isolated, so a logging error can never break inference. As a built-in it is always active.