class

Runtime::DailyFileBackend

Inherits Log::Backend < Reference < Object

日次ローテーションでログを書き出すバックエンド(仕様書 6 章)。 世代数を超えた古いファイルは書き出しのタイミングで消す。

Constants

GENERATIONS = 7

Constructors

new(directory : String, generations : Int32 = GENERATIONS)
Source

Instance methods

close

Closes underlying resources used by this backend.

Source
write(entry : Log::Entry) : Nil

Writes the entry to this backend.

Source