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 -> ) #

Creates an instance of a Log::Formatter that calls the specified Proc for every entry


[View source]

Instance Method Detail

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

Writes a Log::Entry through an IO


[View source]