Sha256: 264d2767eba321cc2393c4284deb3b5404e5b731a005c36efd278258c123c95e

Contents?: true

Size: 510 Bytes

Versions: 11

Compression:

Stored size: 510 Bytes

Contents

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

11 entries across 11 versions & 4 rubygems

Version Path
ruby-saml-0.7.3 lib/onelogin/ruby-saml/logging.rb
ruby-saml-uppercase-0.6.1 lib/onelogin/ruby-saml/logging.rb
ruby-saml-nechotech-0.7.22 lib/onelogin/ruby-saml/logging.rb
ruby-saml-nechotech-0.7.21 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.7.2 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.7.1 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.7.0 lib/onelogin/ruby-saml/logging.rb
ruby-saml-federazione-trentina-0.0.1 lib/onelogin/ruby-saml/logging.rb
ruby-saml-uppercase-0.6.0 lib/onelogin/ruby-saml/logging.rb
ruby-saml-0.6.0 lib/onelogin/ruby-saml/logging.rb
ruby-saml-uppercase-0.5.3.4 lib/onelogin/ruby-saml/logging.rb