ServerLogger.Supervisor (ServerLogger v0.3.0)

Copy Markdown View Source

Top-level supervisor for ServerLogger.

Creates the ETS buffer table, supervises BufferServer and PrunerServer, and attaches/detaches the Erlang :logger handler.

Usage

Add to your application's supervision tree:

children = [
  MyApp.Repo,
  # ... other children ...
  ServerLogger.Supervisor
]

Returns :ignore when enabled?: false in config.

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 \\ [])