MobDev.Server.ElixirLogBuffer (mob_dev v0.3.37)

Copy Markdown View Source

Holds the last N server-side Elixir log lines in memory so the dashboard can restore them on reconnect. Fed by MobDev.Server.ElixirLogger.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

clear()

@spec clear() :: :ok

get()

@spec get() :: [map()]

push(line)

@spec push(map()) :: :ok

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()