Sha256: 21f0f232bb8d32e4cd91ca1b7994bdf31c6e538f73cabffb0e49f5b6d03be5d3

Contents?: true

Size: 284 Bytes

Versions: 31

Compression:

Stored size: 284 Bytes

Contents

require 'pp'
module LVS
  module JsonService
    module Logger
      def self.debug(message)
        if defined?(Rails) && Rails.logger
          message = "  \033[1;4;32mLVS::JsonService\033[0m #{message}"
          Rails.logger.debug(message)
        end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
LVS-JSONService-0.2.2 lib/lvs/json_service/logger.rb
LVS-JSONService-0.2.3 lib/lvs/json_service/logger.rb
LVS-JSONService-0.2.4 lib/lvs/json_service/logger.rb
LVS-JSONService-0.2.5 lib/lvs/json_service/logger.rb
LVS-JSONService-0.2.6 lib/lvs/json_service/logger.rb
LVS-JSONService-0.2.8 lib/lvs/json_service/logger.rb
LVS-JSONService-0.2.9 lib/lvs/json_service/logger.rb
LVS-JSONService-0.3.0 lib/lvs/json_service/logger.rb
LVS-JSONService-0.3.2 lib/lvs/json_service/logger.rb
LVS-JSONService-0.3.3 lib/lvs/json_service/logger.rb
LVS-JSONService-0.5.4 lib/lvs/json_service/logger.rb
LVS-JSONService-0.5.3 lib/lvs/json_service/logger.rb
LVS-JSONService-0.5.2 lib/lvs/json_service/logger.rb
LVS-JSONService-0.5.1 lib/lvs/json_service/logger.rb
LVS-JSONService-0.5.0 lib/lvs/json_service/logger.rb
LVS-JSONService-0.4.9 lib/lvs/json_service/logger.rb
LVS-JSONService-0.4.8 lib/lvs/json_service/logger.rb
LVS-JSONService-0.4.7 lib/lvs/json_service/logger.rb
LVS-JSONService-0.4.6 lib/lvs/json_service/logger.rb
LVS-JSONService-0.4.5 lib/lvs/json_service/logger.rb