Sha256: 586382c146899862ee331bcb07615079a8c12ec359ebec9a59f386ec47a4daeb

Contents?: true

Size: 351 Bytes

Versions: 3

Compression:

Stored size: 351 Bytes

Contents

## This controller uses includes

class BarController < ApplicationController
  def index
    Rails.logger.info "Logging with Rails.logger" # Printed to STDOUT
    logger.info "Logging with logger"             # Not printed to STDOUT

    Rails.logger.silence {
      Rails.logger.info "This should not be logged!"
    }
  end

  def update
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
rails_stdout_json_logging-0.1.5 test/dummy/app/controllers/bar_controller.rb
rails_stdout_logging-0.0.5 test/dummy/app/controllers/bar_controller.rb
rails_stdout_logging-0.0.4 test/dummy/app/controllers/bar_controller.rb