Class: Temporal::Logger
- Inherits:
-
Logger
- Object
- Logger
- Temporal::Logger
- Defined in:
- lib/temporal/logger.rb
Constant Summary collapse
- SEVERITIES =
%i[debug info warn error fatal unknown].freeze
Instance Method Summary collapse
Instance Method Details
#log(severity, message, data = {}) ⇒ Object
13 14 15 |
# File 'lib/temporal/logger.rb', line 13 def log(severity, , data = {}) add(severity, .to_s + ' ' + Oj.dump(data, mode: :strict)) end |