Class: ConfigCat::ConfigCatLogger
- Inherits:
-
Object
- Object
- ConfigCat::ConfigCatLogger
- Defined in:
- lib/configcat/configcatlogger.rb
Instance Method Summary collapse
- #debug(message) ⇒ Object
- #error(message) ⇒ Object
- #info(message) ⇒ Object
-
#initialize(hooks) ⇒ ConfigCatLogger
constructor
A new instance of ConfigCatLogger.
- #warn(message) ⇒ Object
Constructor Details
#initialize(hooks) ⇒ ConfigCatLogger
Returns a new instance of ConfigCatLogger.
3 4 5 |
# File 'lib/configcat/configcatlogger.rb', line 3 def initialize(hooks) @hooks = hooks end |
Instance Method Details
#debug(message) ⇒ Object
7 8 9 |
# File 'lib/configcat/configcatlogger.rb', line 7 def debug() ConfigCat.logger.debug() end |
#error(message) ⇒ Object
19 20 21 22 |
# File 'lib/configcat/configcatlogger.rb', line 19 def error() @hooks.invoke_on_error() ConfigCat.logger.error() end |
#info(message) ⇒ Object
11 12 13 |
# File 'lib/configcat/configcatlogger.rb', line 11 def info() ConfigCat.logger.info() end |
#warn(message) ⇒ Object
15 16 17 |
# File 'lib/configcat/configcatlogger.rb', line 15 def warn() ConfigCat.logger.warn() end |