antikythera v0.2.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

Link to this section Functions

Link to this function debug(logger_name, msg) View Source
debug(atom(), String.t()) :: :ok
Link to this function debug(logger_name, t, context_id, msg) View Source
Link to this function error(logger_name, msg) View Source
error(atom(), String.t()) :: :ok
Link to this function error(logger_name, t, context_id, msg) View Source
Link to this function info(logger_name, msg) View Source
info(atom(), String.t()) :: :ok
Link to this function info(logger_name, t, context_id, msg) View Source
Link to this function rotate_and_start_upload_in_all_nodes(gear_name) View Source
rotate_and_start_upload_in_all_nodes(Antikythera.GearName.t()) :: :abcast
Link to this function set_min_level(gear_name, level) View Source
Link to this function start_link(gear_name, logger_name) View Source