class Sawmill::StatsRailtie::Configuration

Configuration options. These are attributes of config.sawmill_stats.

Attributes

elapsed_time_stat[RW]

This option is passed to Sawmill::StatsMiddleware.new

end_time_stat[RW]

This option is passed to Sawmill::StatsMiddleware.new

fractional_second_digits[RW]

This option is passed to Sawmill::EntryProcessor::Format.new

generated_logger[R]

Access the logger after it is generated

iso_8601_time[RW]

This option is passed to Sawmill::EntryProcessor::Format.new

length_limit[RW]

This option is passed to Sawmill::EntryProcessor::Format.new

level[RW]

This option is passed to Sawmill::Logger.new

level_width[RW]

This option is passed to Sawmill::EntryProcessor::Format.new

local_time[RW]

This option is passed to Sawmill::EntryProcessor::Format.new

logfile[RW]

The log file to write to. This should be either an IO object, or a Sawmill::Rotater. Default is STDERR.

post_logger[W]
pre_logger[W]
progname[RW]

This option is passed to Sawmill::Logger.new

request_id_stat[RW]

This option is passed to Sawmill::StatsMiddleware.new

start_time_stat[RW]

This option is passed to Sawmill::StatsMiddleware.new

stats_data_key[RW]

This option is passed to Sawmill::StatsMiddleware.new

Public Instance Methods

post_logger(proc_=false, &block_) click to toggle source
# File lib/sawmill/stats_railtie.rb, line 128
def post_logger(proc_=false, &block_)
  if block_
    @post_logger = block_
  elsif proc_ != false
    @post_logger = proc_
  end
  @post_logger
end
pre_logger(proc_=false, &block_) click to toggle source
# File lib/sawmill/stats_railtie.rb, line 118
def pre_logger(proc_=false, &block_)
  if block_
    @pre_logger = block_
  elsif proc_ != false
    @pre_logger = proc_
  end
  @pre_logger
end