Module: OneacctExporter::Log
- Defined in:
- lib/oneacct_exporter/log.rb
Class Method Summary collapse
Class Method Details
.setup_log_level(logger) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/oneacct_exporter/log.rb', line 5 def self.setup_log_level(logger) if ENV['ONEACCT_EXPORT_LOG_LEVEL'] && Logger::Severity.const_defined?(ENV['ONEACCT_EXPORT_LOG_LEVEL']) logger.level = Logger::Severity.const_get ENV['ONEACCT_EXPORT_LOG_LEVEL'] else logger.level = Logger::ERROR end logger end |