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