View Source AntikytheraCore.GearLog.Writer (antikythera v0.5.1)

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.

Summary

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec debug(atom(), String.t()) :: :ok
Link to this function

debug(logger_name, t, context_id, msg)

View Source
@spec debug(
  atom(),
  Antikythera.Time.t(),
  Antikythera.ContextId.t(),
  String.t()
) :: :ok
@spec error(atom(), String.t()) :: :ok
Link to this function

error(logger_name, t, context_id, msg)

View Source
@spec error(
  atom(),
  Antikythera.Time.t(),
  Antikythera.ContextId.t(),
  String.t()
) :: :ok
@spec info(atom(), String.t()) :: :ok
Link to this function

info(logger_name, t, context_id, msg)

View Source
@spec info(
  atom(),
  Antikythera.Time.t(),
  Antikythera.ContextId.t(),
  String.t()
) :: :ok
Link to this function

restore_write_to_terminal(gear_name)

View Source
@spec restore_write_to_terminal(Antikythera.GearName.t()) :: :ok
@spec rotate(Antikythera.GearName.t()) :: :ok
Link to this function

rotate_and_start_upload_in_all_nodes(gear_name)

View Source
@spec rotate_and_start_upload_in_all_nodes(Antikythera.GearName.t()) :: :abcast
Link to this function

set_min_level(gear_name, level)

View Source
@spec set_min_level(Antikythera.GearName.t(), AntikytheraCore.GearLog.Level.t()) ::
  :ok
Link to this function

set_write_to_terminal(gear_name, new_val)

View Source
@spec set_write_to_terminal(Antikythera.GearName.t(), boolean()) :: :ok