Class: DeviseActiveDirectoryAuthenticatable::Logger

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

Class Method Summary collapse

Class Method Details

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



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

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