Class: EventifyPro::DefaultLogger
- Inherits:
-
Object
- Object
- EventifyPro::DefaultLogger
- Defined in:
- lib/eventify_pro/logger.rb
Overview
Default Logger for EventifyPro::Client. Used if logger is not provided during client initialization
Instance Method Summary collapse
- #info(message) ⇒ Object
-
#initialize ⇒ DefaultLogger
constructor
A new instance of DefaultLogger.
Constructor Details
#initialize ⇒ DefaultLogger
Returns a new instance of DefaultLogger.
9 10 11 12 13 14 15 |
# File 'lib/eventify_pro/logger.rb', line 9 def initialize @logger = Logger.new(STDOUT) @logger.level = Logger::INFO @logger.datetime_format = '%Y-%m-%d %H:%M:%S ' rescue false end |
Instance Method Details
#info(message) ⇒ Object
17 18 19 20 21 |
# File 'lib/eventify_pro/logger.rb', line 17 def info() @logger.info() rescue false end |