Class: Sbmt::Strangler::Logger
- Inherits:
-
Object
- Object
- Sbmt::Strangler::Logger
- Defined in:
- lib/sbmt/strangler/logger.rb
Instance Method Summary collapse
- #log_debug(message, **params) ⇒ Object
- #log_error(message, **params) ⇒ Object
- #log_failure(message, **params) ⇒ Object
- #log_info(message, **params) ⇒ Object
- #log_success(message, **params) ⇒ Object
- #log_warn(message, **params) ⇒ Object
- #with_tags(**params) ⇒ Object
Instance Method Details
#log_debug(message, **params) ⇒ Object
9 10 11 12 13 |
# File 'lib/sbmt/strangler/logger.rb', line 9 def log_debug(, **params) (**params) do logger.debug() end end |
#log_error(message, **params) ⇒ Object
27 28 29 30 31 |
# File 'lib/sbmt/strangler/logger.rb', line 27 def log_error(, **params) (**params) do logger.error() end end |
#log_failure(message, **params) ⇒ Object
37 38 39 |
# File 'lib/sbmt/strangler/logger.rb', line 37 def log_failure(, **params) log_error(, status: "failure", **params) end |
#log_info(message, **params) ⇒ Object
15 16 17 18 19 |
# File 'lib/sbmt/strangler/logger.rb', line 15 def log_info(, **params) (**params) do logger.info() end end |
#log_success(message, **params) ⇒ Object
33 34 35 |
# File 'lib/sbmt/strangler/logger.rb', line 33 def log_success(, **params) log_info(, status: "success", **params) end |
#log_warn(message, **params) ⇒ Object
21 22 23 24 25 |
# File 'lib/sbmt/strangler/logger.rb', line 21 def log_warn(, **params) (**params) do logger.warn() end end |
#with_tags(**params) ⇒ Object
41 42 43 44 45 |
# File 'lib/sbmt/strangler/logger.rb', line 41 def (**params) logger.tagged(**params) do yield end end |