MobDev.Server.LogBuffer (mob_dev v0.5.3)

Copy Markdown View Source

Holds the last 500 log lines in memory so the LiveView can restore them on reconnect without losing context from before a crash or page refresh.

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()