Sha256: d11dc67838c18e2db853423d21295f841be592140cbea0ad7c0914037cdf1afc

Contents?: true

Size: 508 Bytes

Versions: 5

Compression:

Stored size: 508 Bytes

Contents

# Simplistic log class when we're running in Rails
module Federa
  module Saml
    class Logging
      def self.debug(message)
        return if !!ENV["ruby-saml/testing"]

        if defined? Rails
          Rails.logger.debug message
        else
          puts message
        end
      end

      def self.info(message)
        return if !!ENV["ruby-saml/testing"]

        if defined? Rails
          Rails.logger.info message
        else
          puts message
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-saml-federa-0.0.7 lib/federa/ruby-saml/logging.rb
ruby-saml-federa-0.0.6 lib/federa/ruby-saml/logging.rb
ruby-saml-federa-0.0.5 lib/federa/ruby-saml/logging.rb
ruby-saml-federa-0.0.4 lib/federa/ruby-saml/logging.rb
ruby-saml-federa-0.0.2 lib/federa/ruby-saml/logging.rb