Module: Thoreau::Logging
- Included in:
- Case::CaseBuilder, Case::MultiClanCaseBuilder, Case::SuiteRunner, DSL, DSL::Context::Suite, DSL::Context::TestCases, DSL::TestSuiteData, Model::Outcome, Model::TestCase, Model::TestClan
- Defined in:
- lib/thoreau/service/logging.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/thoreau/service/logging.rb', line 24 def self.included(base) class << base def logger Logging.logger end end end |
.logger ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/thoreau/service/logging.rb', line 8 def logger if @logger.nil? @logger = Logger.new(STDOUT, formatter: proc { |severity, datetime, progname, msg| "#{severity}: #{msg}\n" }) @logger.level = Logger::INFO @logger.level = Logger::DEBUG if ENV['DEBUG'] end @logger end |