Sha256: 98a1f4aecaa59fda8c1577d2ed29183d1aa04150e2aeb4c14eaa97d0432c5d69

Contents?: true

Size: 480 Bytes

Versions: 343

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true

module Ariadne
  # :nodoc:
  module LoggerHelper
    def logger
      return Rails.logger if defined?(Rails) && Rails.logger

      require "logger"
      Logger.new($stderr)
    end

    # TODO: test
    def silence_deprecations?
      Rails.application.config.ariadne_view_components.silence_deprecations
    end

    # TODO: test
    def silence_warnings?
      Rails.application.config.ariadne_view_components.silence_warnings
    end
  end
end

Version data entries

343 entries across 343 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.21-x64-mingw-ucrt app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.21-arm64-darwin app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.21-aarch64-linux app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.20 app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.20-x86_64-linux app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.20-x86_64-darwin app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.20-x64-mingw32 app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.20-x64-mingw-ucrt app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.20-arm64-darwin app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.20-aarch64-linux app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.19 app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.18 app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.18-x86_64-linux app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.18-x86_64-darwin app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.18-x64-mingw32 app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.18-x64-mingw-ucrt app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.18-arm64-darwin app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.18-aarch64-linux app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.17-x86_64-linux app/lib/ariadne/logger_helper.rb
ariadne_view_components-0.0.17-x86_64-darwin app/lib/ariadne/logger_helper.rb