Class: Optimizely::SimpleLogger
- Inherits:
-
BaseLogger
- Object
- BaseLogger
- Optimizely::SimpleLogger
- Defined in:
- lib/optimizely/logger.rb
Instance Method Summary collapse
-
#initialize(min_level = Logger::INFO) ⇒ SimpleLogger
constructor
Simple wrapper around Logger.
- #log(level, message) ⇒ Object
Constructor Details
#initialize(min_level = Logger::INFO) ⇒ SimpleLogger
Simple wrapper around Logger.
36 37 38 39 40 |
# File 'lib/optimizely/logger.rb', line 36 def initialize(min_level = Logger::INFO) super() @logger = Logger.new($stdout) @logger.level = min_level end |
Instance Method Details
#log(level, message) ⇒ Object
42 43 44 |
# File 'lib/optimizely/logger.rb', line 42 def log(level, ) @logger.add(level, ) end |