Sha256: 7779bf2e1ae2ad0002a59cb62c002fa9940b418a73d96b6869b12a6e47dddf83

Contents?: true

Size: 528 Bytes

Versions: 12

Compression:

Stored size: 528 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-samlnechotech/testing"]

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

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ruby-samlnechotech-0.7.35 lib/onelogin/ruby-samlnechotech/logging.rb
ruby-samlnechotech-0.7.34 lib/onelogin/ruby-samlnechotech/logging.rb
ruby-samlnechotech-0.7.33 lib/onelogin/ruby-samlnechotech/logging.rb
ruby-samlnechotech-0.7.32 lib/onelogin/ruby-samlnechotech/logging.rb
ruby-samlnechotech-0.7.31 lib/onelogin/ruby-samlnechotech/logging.rb
ruby-samlnechotech-0.7.30 lib/onelogin/ruby-samlnechotech/logging.rb
ruby-samlnechotech-0.7.28 lib/onelogin/ruby-samlnechotech/logging.rb
ruby-samlnechotech-0.7.27 lib/onelogin/ruby-samlnechotech/logging.rb
ruby-samlnechotech-0.7.26 lib/onelogin/ruby-samlnechotech/logging.rb
ruby-samlnechotech-0.7.25 lib/onelogin/ruby-samlnechotech/logging.rb
ruby-samlnechotech-0.7.24 lib/onelogin/ruby-samlnechotech/logging.rb
ruby-samlnechotech-0.7.23 lib/onelogin/ruby-samlnechotech/logging.rb