module Log::Formatter

Overview

Base interface to convert log entries and write them to anIO

Defined in:

log/format.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(&proc : Log::Entry, IO -> ) : self #

Creates an instance of aLog::Formatter that calls the specifiedProc for every entry


Instance Method Detail

abstract def format(entry : Log::Entry, io : IO) #

Writes aLog::Entry through anIO