Class: Mnogootex::Log::Level

Inherits:
Struct
  • Object
show all
Defined in:
lib/mnogootex/log/level.rb

Overview

This data structure represents a log level usually referred to by its #name. It has a numeric #priority and a #color used for rendering.

Instance Attribute Summary collapse

Instance Attribute Details

#colorSymbol

Returns the color visually representing the #priority.

Returns:

  • (Symbol)

    the color visually representing the #priority



15
# File 'lib/mnogootex/log/level.rb', line 15

Level = Struct.new(:priority, :name, :color)

#nameSymbol

Returns the human readable name of the log level.

Returns:

  • (Symbol)

    the human readable name of the log level



15
# File 'lib/mnogootex/log/level.rb', line 15

Level = Struct.new(:priority, :name, :color)

#priorityNumeric

Returns the numeric priority of the log level.

Returns:

  • (Numeric)

    the numeric priority of the log level



15
# File 'lib/mnogootex/log/level.rb', line 15

Level = Struct.new(:priority, :name, :color)