Beamlens.Skill.Logger.LogStore (beamlens v0.3.1)

View Source

In-memory ring buffer for application logs.

Captures logs via an Erlang :logger handler and provides query APIs for the LLM to investigate log patterns, errors, and module-specific issues.

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

flush(name \\ __MODULE__)

Ensures all pending events are processed. Used in tests.

get_logs(name \\ __MODULE__, opts \\ [])

get_logs_by_module(name \\ __MODULE__, module_name, limit \\ 20)

get_stats(name \\ __MODULE__)

log(map1, map2)

recent_errors(name \\ __MODULE__, limit \\ 10)

search(name \\ __MODULE__, pattern, opts \\ [])

start_link(opts \\ [])