Sha256: 2843c479cd734184d0cb53fbba56e4d3119725dc0e8198dba2b2576ece12554c

Contents?: true

Size: 433 Bytes

Versions: 13

Compression:

Stored size: 433 Bytes

Contents

class OrderController < ApplicationController
  include MongodbLogger::Base
  LOG_MESSAGE = "FOO"
  LOG_USER_ID = 12345

  def index
    logger.debug LOG_MESSAGE
    logger.add_metadata(:application_name_again => Rails.root.basename.to_s)
    logger.add_metadata(:user_id => LOG_USER_ID)
    render :text => "nothing"
  end

  def new
    raise OrderController::LOG_MESSAGE
  end

  def create
    render :text => "create"
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mongodb_logger-0.2.2 test/rails/app/controllers/order_controller.rb
mongodb_logger-0.2.1 test/rails/app/controllers/order_controller.rb
mongodb_logger-0.2.0 test/rails/app/controllers/order_controller.rb
mongodb_logger-0.1.9 test/rails/app/controllers/order_controller.rb
mongodb_logger-0.1.8 test/rails/app/controllers/order_controller.rb
mongodb_logger-0.1.7 test/rails/app/controllers/order_controller.rb
mongodb_logger-0.1.6 test/rails/app/controllers/order_controller.rb
mongodb_logger-0.1.5 test/rails/app/controllers/order_controller.rb
mongodb_logger-0.1.4 test/rails/app/controllers/order_controller.rb
mongodb_logger-0.1.3 test/rails/app/controllers/order_controller.rb
mongodb_logger-0.1.2 test/rails/app/controllers/order_controller.rb
mongodb_logger-0.1.1 test/rails/app/controllers/order_controller.rb
mongodb_logger-0.1.0 test/rails/app/controllers/order_controller.rb