module Log::Formatter
Overview
Base interface to convert log entries and write them to an IO
Defined in:
log/format.crConstructors
- .new(&proc : Log::Entry, IO -> )
Creates an instance of a
Log::Formatterthat calls the specifiedProcfor every entry
Instance Method Summary
- #format(entry : Log::Entry, io : IO)
Writes a
Log::Entrythrough anIO
Constructor Detail
def self.new(&proc : Log::Entry, IO -> )Source
Creates an instance of a Log::Formatter that calls the specified Proc for every entry
Instance Method Detail
abstract def format(entry : Log::Entry, io : IO)Source
Writes a Log::Entry through an IO
© 2012–2021 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.2.1/Log/Formatter.html