Module: Sbuilder::Interfaces::Salesforce::Logger

Included in:
Reader
Defined in:
lib/sbuilder/logger.rb

Constant Summary collapse

@@logfile =

def debug?

  false
end

end

nil

Instance Method Summary collapse

Instance Method Details

#logger(options = {}) ⇒ Object

absolute path to log file



25
26
27
28
29
30
31
32
# File 'lib/sbuilder/logger.rb', line 25

def logger( options={} )
  return @logger if @logger
  # logger name format 'app:class-name'
  progname = Config.configuration.app + ':' + self.class.name.split('::').last
  # create logger - using default lamba or lambda set in SalesforceLoader#setFacade
  @logger = Config.configuration.logger.call( progname )
  @logger
end