Sha256: ab92806f357d8046080648c3f02e3274aa98a1c842d6a4c4ea3a0077d4b2625a

Contents?: true

Size: 582 Bytes

Versions: 6

Compression:

Stored size: 582 Bytes

Contents

module SemanticLogger
  # Formatting & colors used by optional color formatter
  module AnsiColors
    CLEAR   = "\e[0m".freeze
    BOLD    = "\e[1m".freeze
    BLACK   = "\e[30m".freeze
    RED     = "\e[31m".freeze
    GREEN   = "\e[32m".freeze
    YELLOW  = "\e[33m".freeze
    BLUE    = "\e[34m".freeze
    MAGENTA = "\e[35m".freeze
    CYAN    = "\e[36m".freeze
    WHITE   = "\e[37m".freeze

    # DEPRECATED - NOT USED
    LEVEL_MAP = {
      trace: MAGENTA,
      debug: GREEN,
      info:  CYAN,
      warn:  BOLD,
      error: RED,
      fatal: RED
    }.freeze
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
semantic_logger-4.5.0 lib/semantic_logger/ansi_colors.rb
semantic_logger-4.4.0 lib/semantic_logger/ansi_colors.rb
semantic_logger-4.3.1 lib/semantic_logger/ansi_colors.rb
semantic_logger-4.3.0 lib/semantic_logger/ansi_colors.rb
semantic_logger-4.2.2 lib/semantic_logger/ansi_colors.rb
semantic_logger-4.2.1 lib/semantic_logger/ansi_colors.rb