Class: TTK::LoggerFactory
Instance Attribute Summary collapse
-
#active_section ⇒ Object
Returns the value of attribute active_section.
-
#section_tree ⇒ Object
Returns the value of attribute section_tree.
-
#severity_level ⇒ Object
Returns the value of attribute severity_level.
-
#verbosity_level ⇒ Object
Returns the value of attribute verbosity_level.
Instance Method Summary collapse
- #create(*a, &b) ⇒ Object
-
#initialize ⇒ LoggerFactory
constructor
A new instance of LoggerFactory.
Constructor Details
#initialize ⇒ LoggerFactory
Returns a new instance of LoggerFactory.
11 12 13 14 15 16 17 |
# File 'lib/ttk/logger_factory.rb', line 11 def initialize @section_tree = create_section_tree @severity_level = Logger::Severity::DEBUG @verbosity = Logger::Verbosity.new @verbosity_level = 0 @active_section = [] end |
Instance Attribute Details
#active_section ⇒ Object
Returns the value of attribute active_section.
23 24 25 |
# File 'lib/ttk/logger_factory.rb', line 23 def active_section @active_section end |
#section_tree ⇒ Object
Returns the value of attribute section_tree.
25 26 27 |
# File 'lib/ttk/logger_factory.rb', line 25 def section_tree @section_tree end |
#severity_level ⇒ Object
Returns the value of attribute severity_level.
21 22 23 |
# File 'lib/ttk/logger_factory.rb', line 21 def severity_level @severity_level end |
#verbosity_level ⇒ Object
Returns the value of attribute verbosity_level.
19 20 21 |
# File 'lib/ttk/logger_factory.rb', line 19 def verbosity_level @verbosity_level end |