Sha256: 9b928dddc2b50989fa340cc0ff00faf9717436138d34ff68d0c822f683139e7f

Contents?: true

Size: 310 Bytes

Versions: 21

Compression:

Stored size: 310 Bytes

Contents

module Relaton
  module Util
    # @param message [String]
    # @param type [Symbol] default :info
    def self.log(message, type = :info)
      log_types = Relaton.configuration.logs.map(&:to_s) || []

      if log_types.include?(type.to_s)
        warn CGI.unescapeHTML(message)
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
relaton-1.16.0 lib/relaton/util.rb
relaton-1.15.6 lib/relaton/util.rb
relaton-1.15.5 lib/relaton/util.rb
relaton-1.15.4 lib/relaton/util.rb
relaton-1.15.3 lib/relaton/util.rb
relaton-1.15.2 lib/relaton/util.rb
relaton-1.15.1 lib/relaton/util.rb
relaton-1.15.0 lib/relaton/util.rb
relaton-1.14.2 lib/relaton/util.rb
relaton-1.14.1 lib/relaton/util.rb
relaton-1.14.0 lib/relaton/util.rb
relaton-1.13.0 lib/relaton/util.rb
relaton-1.12.4 lib/relaton/util.rb
relaton-1.12.3 lib/relaton/util.rb
relaton-1.12.2 lib/relaton/util.rb
relaton-1.12.1 lib/relaton/util.rb
relaton-1.12.0 lib/relaton/util.rb
relaton-1.11.5 lib/relaton/util.rb
relaton-1.11.4 lib/relaton/util.rb
relaton-1.11.3 lib/relaton/util.rb