Sha256: 0ef47173612643ca1b7bf61db2a16667838f136ba38d8b09ab5b456fc1bef104

Contents?: true

Size: 505 Bytes

Versions: 11

Compression:

Stored size: 505 Bytes

Contents

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

Version Path
cie-es-0.0.11 lib/cie/ruby-saml/logging.rb
cie-es-0.0.10 lib/cie/ruby-saml/logging.rb
cie-es-0.0.9 lib/cie/ruby-saml/logging.rb
cie-es-0.0.8 lib/cie/ruby-saml/logging.rb
cie-es-0.0.7 lib/cie/ruby-saml/logging.rb
cie-es-0.0.6 lib/cie/ruby-saml/logging.rb
cie-es-0.0.5 lib/cie/ruby-saml/logging.rb
cie-es-0.0.4 lib/cie/ruby-saml/logging.rb
cie-es-0.0.3 lib/cie/ruby-saml/logging.rb
cie-es-0.0.2 lib/cie/ruby-saml/logging.rb
cie-es-0.0.1 lib/cie/ruby-saml/logging.rb