Class: Sbmt::Outbox::Logger
- Inherits:
-
Object
- Object
- Sbmt::Outbox::Logger
- Defined in:
- lib/sbmt/outbox/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
- #with_tags(**params) ⇒ Object
Instance Method Details
#log_debug(message, **params) ⇒ Object
8 9 10 11 12 |
# File 'lib/sbmt/outbox/logger.rb', line 8 def log_debug(, **params) (**params) do logger.debug() end end |
#log_error(message, **params) ⇒ Object
20 21 22 23 24 |
# File 'lib/sbmt/outbox/logger.rb', line 20 def log_error(, **params) (**params) do logger.error() end end |
#log_failure(message, **params) ⇒ Object
30 31 32 |
# File 'lib/sbmt/outbox/logger.rb', line 30 def log_failure(, **params) log_error(, status: "failure", **params) end |
#log_info(message, **params) ⇒ Object
14 15 16 17 18 |
# File 'lib/sbmt/outbox/logger.rb', line 14 def log_info(, **params) (**params) do logger.info() end end |
#log_success(message, **params) ⇒ Object
26 27 28 |
# File 'lib/sbmt/outbox/logger.rb', line 26 def log_success(, **params) log_info(, status: "success", **params) end |
#with_tags(**params) ⇒ Object
34 35 36 37 38 |
# File 'lib/sbmt/outbox/logger.rb', line 34 def (**params) logger.tagged(**params) do yield end end |