View Source AntikytheraCore.GearLog.LogRotation (antikythera v0.5.1)
A Module to write and rotate a log file using AntikytheraCore.GearLog.FileHandle
.
Summary
Functions
@spec init(non_neg_integer(), Path.t(), Keyword.t()) :: AntikytheraCore.GearLog.LogRotation.State.t()
@spec restore_write_to_terminal(AntikytheraCore.GearLog.LogRotation.State.t()) :: AntikytheraCore.GearLog.LogRotation.State.t()
@spec rotate(AntikytheraCore.GearLog.LogRotation.State.t()) :: AntikytheraCore.GearLog.LogRotation.State.t()
@spec set_write_to_terminal(AntikytheraCore.GearLog.LogRotation.State.t(), boolean()) :: AntikytheraCore.GearLog.LogRotation.State.t()
@spec terminate(AntikytheraCore.GearLog.LogRotation.State.t()) :: :ok
@spec write_log( AntikytheraCore.GearLog.LogRotation.State.t(), AntikytheraCore.GearLog.Message.t() ) :: AntikytheraCore.GearLog.LogRotation.State.t()