Sha256: 64d8d7758c7ded216318d9dc44b0b463cf6c13cb7f94ec3e9307dc87364373b1

Contents?: true

Size: 514 Bytes

Versions: 23

Compression:

Stored size: 514 Bytes

Contents

# Simplistic log class when we're running in Rails
module OneLogin
  module RubySaml
    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

23 entries across 23 versions & 1 rubygems

Version Path
ruby-saml-0.8.18 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.17 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.16 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.15 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.14 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.13 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.12 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.11 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.10 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.9 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.8 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.7 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.6 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.5 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.9.4 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.4 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.9.3 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.8.3 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.9.2 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.9.1 lib/onelogin/ruby-saml/logging.rb