module Purview::Mixins::Logger
Public Instance Methods
logger()
click to toggle source
# File lib/purview/mixins/logger.rb, line 4 def logger @logger ||= logger_type.new(logger_opts) end
logger_opts()
click to toggle source
# File lib/purview/mixins/logger.rb, line 8 def logger_opts (defined?(opts) && opts[:logger]) || {} end
logger_type()
click to toggle source
# File lib/purview/mixins/logger.rb, line 12 def logger_type (defined?(opts) && opts[:logger_type]) || Purview::Loggers::Console end
with_context_logging(*args) { || ... }
click to toggle source
# File lib/purview/mixins/logger.rb, line 16 def with_context_logging(*args) logger.with_context_logging(*args) { yield } end