Mooncore.Dev.RequestLogger (mooncore v0.2.4)

Copy Markdown

Logs action calls to the dev dashboard.

Called internally by Mooncore.Action.execute/2 — captures all actions regardless of transport (HTTP, WebSocket, MCP runner).

Logs are stored in Mooncore.MCP.Watcher with tag :action. Only logs when config :mooncore, mooncore_dev_tools: true.

Summary

Functions

Log an action call with its request context, result, and duration. Called automatically from Action.execute after every action.

Functions

log_action(action, request, response, duration)

Log an action call with its request context, result, and duration. Called automatically from Action.execute after every action.