abstract struct ColorLogging::ColorFormatter
- ColorLogging::ColorFormatter
- Struct
- Value
- Object
Overview
Most of this class is directly cribbed from Crystal's own StaticFormatter class.
Macro providing the colorizing option and the static with_colors method provided by this project.
Modify the #run
method below to change how log lines behave in terminal
Extended Modules
- Log::Formatter
Direct Known Subclasses
Defined in:
cr-color-logging.crConstructors
Class Method Summary
- .format(entry, io) : Nil
- .with_color(prop : String, color : Symbol)
- .with_colored_severity(severity : Log::Severity, color : Symbol)