Sha256: d988f2540679f5d0a9a36a2b7b542749add735c34dc0da90f23e1a4e304d8344
Contents?: true
Size: 368 Bytes
Versions: 2
Compression:
Stored size: 368 Bytes
Contents
# frozen_string_literal: true require "logger" ## # This Aspect is responsible for logging # the input and output of every endpoint called # in the framework. module LoggingAspect def call_endpoint(logger, *args) logger.info("Input of #{args[0]}: #{args}") response = super(*args) logger.info("Output of #{args[0]} #{response}") response end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
macaw_framework-0.1.5 | lib/macaw_framework/aspects/logging_aspect.rb |
macaw_framework-0.1.4 | lib/macaw_framework/aspects/logging_aspect.rb |