Class: Dry::Logger::Formatters::Template::Colorized Private

Inherits:
Dry::Logger::Formatters::Template show all
Defined in:
lib/dry/logger/formatters/template.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Constant Summary

Constants inherited from Dry::Logger::Formatters::Template

MESSAGE_TOKEN, TOKEN_REGEXP

Instance Attribute Summary

Attributes inherited from Dry::Logger::Formatters::Template

#tokens, #value

Instance Method Summary collapse

Methods inherited from Dry::Logger::Formatters::Template

#%, [], #colorize, #include?

Constructor Details

#initialize(value) ⇒ Colorized

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Colorized.

Since:

  • 1.0.0



58
59
60
# File 'lib/dry/logger/formatters/template.rb', line 58

def initialize(value)
  super(Colors.evaluate(value))
end