ServerLogger.PrunerServer (ServerLogger v0.3.0)

Copy Markdown View Source

GenServer that periodically:

  1. Ensures the next month's partition exists
  2. Prunes expired log rows per-level based on :lifetime_days config
  3. Drops entire partitions when all levels have non-zero lifetimes and the partition is fully expired

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.

start_link(opts \\ [])