Class: Ant::Configuration::Autoconfigs::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/ant/configs/autoconfigs/logger.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Logger

Returns a new instance of Logger.



12
13
14
15
# File 'lib/ant/configs/autoconfigs/logger.rb', line 12

def initialize(config)
  @config = config
  Ant::Logger::LogMethods.global_config = Ant::Logger::Config.new(config)
end

Class Method Details

.from_config(config) ⇒ Object



7
8
9
10
# File 'lib/ant/configs/autoconfigs/logger.rb', line 7

def self.from_config(config)
  require 'ant/logger'
  new(config)
end

Instance Method Details

#rawObject



21
22
23
# File 'lib/ant/configs/autoconfigs/logger.rb', line 21

def raw
  @logger
end

#sanity_checkObject



17
18
19
# File 'lib/ant/configs/autoconfigs/logger.rb', line 17

def sanity_check
  true
end