Sha256: 9dbb0dc34c71dbea7149fe2a2a7db28a531af87c6146b473103ed7fd9cf12bf4
Contents?: true
Size: 509 Bytes
Versions: 18
Compression:
Stored size: 509 Bytes
Contents
module Errdo class Logger include Errdo::Helpers::NotificationHelper def initialize(importance, *args) @importance = importance exception, string, params = separate_args(*args) @parser = Errdo::Models::ErrorLoggerParser.new(exception, string, params) end def log error = Errdo::Error.find_or_create(**@parser.error_hash, importance: @importance) error.try(:error_occurrences).try(:create, @parser.error_occurrence_hash) return error end end end
Version data entries
18 entries across 18 versions & 1 rubygems