Exconf v0.2.0 Exconfig.ConfigLogger View Source

This module starts a GenServer at the first use of Exconfig.get/3 and adds each usage of Exconfig.get/3 to the state of the server. At termination, all captured entries will be written to the configured logfile.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Add a new entry to the state of Elixir.Exconfig.ConfigLogger.

Write the configuration log to disk before terminating.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

record_usage(env, key, default) View Source

Add a new entry to the state of Elixir.Exconfig.ConfigLogger.

Link to this function

terminate(reason, state) View Source

Write the configuration log to disk before terminating.