antikythera v0.4.0 AntikytheraCore.GearLog.Writer View Source
A GenServer
that writes log messages from each gear's Logger
process into a gzipped file.
This GenServer
is spawned per gear; each of which resides in the gear's supervision tree.
Although opened log files are regularly rotated, this GenServer
also supports on-demand log rotation.
After each successful log rotation, old log file is uploaded to cloud storage.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Specs
Specs
debug(atom(), Antikythera.Time.t(), Antikythera.ContextId.t(), String.t()) :: :ok
Specs
Specs
error(atom(), Antikythera.Time.t(), Antikythera.ContextId.t(), String.t()) :: :ok
Specs
Specs
info(atom(), Antikythera.Time.t(), Antikythera.ContextId.t(), String.t()) :: :ok
Specs
rotate(Antikythera.GearName.t()) :: :ok
Specs
rotate_and_start_upload_in_all_nodes(Antikythera.GearName.t()) :: :abcast
Specs
set_min_level(Antikythera.GearName.t(), AntikytheraCore.GearLog.Level.t()) :: :ok