Module: Saddler

Defined in:
lib/saddler.rb,
lib/saddler/cli.rb,
lib/saddler/error.rb,
lib/saddler/version.rb,
lib/saddler/reporter.rb,
lib/saddler/validator.rb

Defined Under Namespace

Modules: Reporter Classes: CLI, InvalidXMLError, NoInputError, NoReporterError, Validator

Constant Summary collapse

VERSION =
'1.0.0'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject



18
19
20
21
# File 'lib/saddler.rb', line 18

def self.logger
  return @logger if @logger
  @logger = default_logger
end

Class Method Details

.default_loggerObject



11
12
13
14
15
16
# File 'lib/saddler.rb', line 11

def self.default_logger
  logger = Logger.new(STDERR)
  logger.progname = 'Saddler'
  logger.level = Logger::WARN
  logger
end