module Crylog::Formatters::Formattable
Overview
Represents handlers that can have custom formatters.
Direct including types
Defined in:
formatters/formattable.crInstance Method Summary
-
#formatter : Crylog::Formatters::LogFormatters
Returns the
Crylog::Formatters::LogFormatter
defined onself
, or#default_formatter
if none was set. -
#formatter=(formatter : Crylog::Formatters::LogFormatters?)
The formatter to use, defaults to
Crylog::Formatters::LineFormatter
.
Instance Method Detail
def formatter : Crylog::Formatters::LogFormatters
#
Returns the Crylog::Formatters::LogFormatter
defined on self
, or #default_formatter
if none was set.
def formatter=(formatter : Crylog::Formatters::LogFormatters?)
#
The formatter to use, defaults to Crylog::Formatters::LineFormatter
.