W3cubDocs

/Crystal

module Log::Formatter

Overview

Base interface to convert log entries and write them to an IO

Defined in:

log/format.cr

Constructors

Instance Method Summary

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–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/Log/Formatter.html