Sha256: 92cdefe6dcbfde3f95c819e7784f20cb4bcae01013e5758c4c7d8f4a4f01344c
Contents?: true
Size: 576 Bytes
Versions: 4
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true module Phobos module Log def log_info(msg, metadata = {}) LoggerHelper.log(:info, msg, metadata) end def log_debug(msg, metadata = {}) LoggerHelper.log(:debug, msg, metadata) end def log_error(msg, metadata) LoggerHelper.log(:error, msg, metadata) end def log_warn(msg, metadata = {}) LoggerHelper.log(:warn, msg, metadata) end end module LoggerHelper def self.log(method, msg, metadata) Phobos.logger.send(method, Hash(message: msg).merge(metadata)) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
phobos-2.1.6 | lib/phobos/log.rb |
phobos-2.1.5 | lib/phobos/log.rb |
phobos-2.1.4 | lib/phobos/log.rb |
phobos-2.1.3 | lib/phobos/log.rb |