Sha256: a415c3df3baccda236164b89c548bb2cdb1a780b1b4814b83ecdd3312d5d0eaf

Contents?: true

Size: 438 Bytes

Versions: 14

Compression:

Stored size: 438 Bytes

Contents

module Hydra::Derivatives
  class Logger

    class << self

      def method_missing method_name, *arguments, &block
        logger.send(method_name, *arguments, &block)
      rescue
        super
      end

      def respond_to?(method_name, include_private = false)
        logger.respond_to? method_name
      end

      private

      def logger
        ActiveFedora::Base.logger || ::Logger.new(STDOUT)
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hydra-derivatives-3.1.3 lib/hydra/derivatives/logger.rb
hydra-derivatives-3.1.2 lib/hydra/derivatives/logger.rb
hydra-derivatives-3.1.1 lib/hydra/derivatives/logger.rb
hydra-derivatives-1.2.1 lib/hydra/derivatives/logger.rb
hydra-derivatives-1.2.0 lib/hydra/derivatives/logger.rb
hydra-derivatives-3.1.0 lib/hydra/derivatives/logger.rb
hydra-derivatives-3.0.2 lib/hydra/derivatives/logger.rb
hydra-derivatives-3.0.1 lib/hydra/derivatives/logger.rb
hydra-derivatives-3.0.0 lib/hydra/derivatives/logger.rb
hydra-derivatives-2.0.0 lib/hydra/derivatives/logger.rb
hydra-derivatives-1.1.0 lib/hydra/derivatives/logger.rb
hydra-derivatives-1.0.0 lib/hydra/derivatives/logger.rb
hydra-derivatives-1.0.0.rc1 lib/hydra/derivatives/logger.rb
hydra-derivatives-1.0.0.beta1 lib/hydra/derivatives/logger.rb