Sha256: 1b9d4b70ac82d0b3dc1067552e24f586579d4c7d0300413a4381461866bbe97c

Contents?: true

Size: 331 Bytes

Versions: 3

Compression:

Stored size: 331 Bytes

Contents

module Crystal
  module Processors
    class ControllerLogger < Processor
      def call
        next_processor.call
        
        if (klass = workspace.class) and (method = workspace.method_name)
          logger.info "Processing #{klass.name}.#{method} with #{workspace.params.inspect}"
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
crystal-0.0.13 lib/crystal/controller/processors/controller_logger.rb
crystal-0.0.12 lib/crystal/controller/processors/controller_logger.rb
crystal_ext-0.0.11 lib/crystal/controller/processors/controller_logger.rb