Sha256: 0b955f4817eec9403bf112c05f7ee0f8e91b2dc5321149626dfab48bf7e50741
Contents?: true
Size: 490 Bytes
Versions: 4
Compression:
Stored size: 490 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) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
errdo-0.11.3 | lib/errdo/logger.rb |
errdo-0.11.2 | lib/errdo/logger.rb |
errdo-0.11.1 | lib/errdo/logger.rb |
errdo-0.11.0 | lib/errdo/logger.rb |