Class TTK::LoggerFactory
In: lib/ttk/logger_factory.rb
Parent: Object

Methods

create   new  

Attributes

active_section  [RW] 
severity_level  [RW] 
verbosity_level  [RW] 

Public Class methods

[Source]

# 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

Public Instance methods

[Source]

# File lib/ttk/logger_factory.rb, line 25
    def create(*a, &b)
      log = Logger.new(*a, &b)
      log.severity_level = @severity_level
      log.verbosity_level = @verbosity_level
      log.section_tree = @section_tree
      log.active_section(true, *@active_section)
      log
    end

[Validate]