Class: DeviseLdapAuthenticatable::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/devise_ldap_authenticatable/logger.rb

Class Method Summary collapse

Class Method Details

.send(message, logger = Rails.logger) ⇒ Object



4
5
6
7
8
# File 'lib/devise_ldap_authenticatable/logger.rb', line 4

def self.send(message, logger = Rails.logger)
  if ::Devise.ldap_logger
    logger.add 0, "  \e[36mLDAP:\e[0m #{message}"
  end
end