Class: Temporal::Logger

Inherits:
Logger
  • Object
show all
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, message, data = {})
  add(severity, message.to_s + ' ' + Oj.dump(data, mode: :strict))
end