Sha256: 1f58b0705841854c500e5066a47459fab829588eddd9df4fa575bc7f94009c15
Contents?: true
Size: 634 Bytes
Versions: 4
Compression:
Stored size: 634 Bytes
Contents
require 'rscm/path_converter' require 'logger' if(WINDOWS) HOMEDIR = RSCM::PathConverter.nativepath_to_filepath("#{ENV['HOMEDRIVE']}#{ENV['HOMEPATH']}").gsub(/\\/, "/") else HOMEDIR = ENV['HOME'] end begin RSCM_DEFAULT_LOGGER = Logger.new("#{HOMEDIR}/.rscm.log") rescue StandardError RSCM_DEFAULT_LOGGER = Logger.new(STDERR) RSCM_DEFAULT_LOGGER.level = Logger::WARN RSCM_DEFAULT_LOGGER.warn( "RSCM Error: Unable to access log file. Please ensure that #{HOMEDIR}/.rscm.log exists and is chmod 0666. " + "The log level has been raised to WARN and the output directed to STDERR until the problem is fixed." ) end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rscm-0.3.2 | lib/rscm/logging.rb |
rscm-0.3.4 | lib/rscm/logging.rb |
rscm-0.3.1 | lib/rscm/logging.rb |
rscm-0.3.3 | lib/rscm/logging.rb |