Packages

Multi-surface application runtime for Elixir. One TEA module renders to terminal, browser (LiveView), SSH, and MCP (agents). 30+ widgets, flexbox + CSS grid, AI agent runtime, distributed swarm with CRDTs, time-travel debugging, session recording, sandboxed REPL, and agentic commerce.

Current section

Files

Jump to
raxol lib raxol core runtime debug.ex
Raw

lib/raxol/core/runtime/debug.ex

defmodule Raxol.Core.Runtime.Debug do
@moduledoc """
Debug logging functionality for the Raxol runtime.
"""
@callback debug(message :: String.t()) :: :ok
@callback info(message :: String.t()) :: :ok
@callback warn(message :: String.t()) :: :ok
@callback error(message :: String.t()) :: :ok
@behaviour __MODULE__
require Raxol.Core.Runtime.Log
@impl __MODULE__
def debug(message), do: Raxol.Core.Runtime.Log.debug(message)
@impl __MODULE__
def info(message), do: Raxol.Core.Runtime.Log.info(message)
@impl __MODULE__
def warn(message),
do: Raxol.Core.Runtime.Log.warning(message, %{module: __MODULE__})
@impl __MODULE__
def error(message),
do: Raxol.Core.Runtime.Log.error(message, %{module: __MODULE__})
end