Class: OneLogin::KlRubySaml::Logging
- Inherits:
-
Object
- Object
- OneLogin::KlRubySaml::Logging
- Defined in:
- lib/onelogin/kl-ruby-saml/logging.rb
Constant Summary collapse
- DEFAULT_LOGGER =
::Logger.new(STDOUT)
Class Method Summary collapse
Class Method Details
.debug(message) ⇒ Object
17 18 19 20 21 |
# File 'lib/onelogin/kl-ruby-saml/logging.rb', line 17 def self.debug() return if !!ENV["kl-ruby-saml/testing"] logger.debug end |
.info(message) ⇒ Object
23 24 25 26 27 |
# File 'lib/onelogin/kl-ruby-saml/logging.rb', line 23 def self.info() return if !!ENV["kl-ruby-saml/testing"] logger.info end |
.logger ⇒ Object
9 10 11 |
# File 'lib/onelogin/kl-ruby-saml/logging.rb', line 9 def self.logger @logger || (defined?(::Rails) && Rails.logger) || DEFAULT_LOGGER end |
.logger=(logger) ⇒ Object
13 14 15 |
# File 'lib/onelogin/kl-ruby-saml/logging.rb', line 13 def self.logger=(logger) @logger = logger end |