module EZDyn
Base module for the ezdyn gem. Offers logging functionality via module methods debug and info.
Set the environment variable `EZDYN_DEBUG` to any value to enable debug logging to `stderr`.
Constants
- API_RETRY_BACKOFF
exponential backoff extra wait
- API_RETRY_DELAY_SECONDS
baseline delay seconds
- API_RETRY_MAX_ATTEMPTS
max retry count
- VERSION
The version number of the library.
Public Class Methods
debug() { || ... }
click to toggle source
Logs a debug message to the default logger containing the value yielded by the given block.
# File lib/ezdyn/log.rb, line 34 def self.debug &block if block_given? and not @@logger.nil? @@logger.logger.debug { yield } end end
info() { || ... }
click to toggle source
Logs an info-level message to the default logger containing the value yielded by the given block.
# File lib/ezdyn/log.rb, line 42 def self.info &block if block_given? and not @@logger.nil? @@logger.logger.info { yield } end end