class N2y::RotatingBackend
- N2y::RotatingBackend
- Log::Backend
- Reference
- Object
Included Modules
- Habitat::SettingsHelpers
- Habitat::TempConfig
Defined in:
n2y/rotating_backend.crConstant Summary
-
HABITAT_SETTINGS =
[{decl: storage_path : String, example: nil, validation: nil}] of Nil
Constructors
Class Method Summary
Instance Method Summary
-
#close
Closes underlying resources used by this backend.
-
#format(entry : Log::Entry, io : IO)
Emits the entry to the given io.
- #settings
-
#write(entry : Log::Entry)
Writes the entry to this backend.
Constructor Detail
Class Method Detail
Instance Method Detail
def close
#
Description copied from class Log::Backend
Closes underlying resources used by this backend.
def format(entry : Log::Entry, io : IO)
#
Emits the entry to the given io.
It uses the #formatter
to convert.
def write(entry : Log::Entry)
#
Description copied from class Log::Backend
Writes the entry to this backend.