class Sawmill::Railtie::Configuration

Configuration options. These are attributes of config.sawmill.

Attributes

attribute_level[RW]

This option is passed to Sawmill::Logger.new

elapsed_time_attribute[RW]

This option is passed to Sawmill::LogRecordMiddleware.new

end_time_attribute[RW]

This option is passed to Sawmill::LogRecordMiddleware.new

entry_filter[RW]

An optional filter to run on log entries before they get passed to the formatter.

fractional_second_digits[RW]

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

include_id[RW]

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

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

record_id_generator[RW]

This option is passed to Sawmill::Logger.new

record_progname[RW]

This option is passed to Sawmill::Logger.new

request_id_key[RW]

This option is passed to Sawmill::LogRecordMiddleware.new

start_time_attribute[RW]

This option is passed to Sawmill::LogRecordMiddleware.new

Public Instance Methods

post_logger(proc_=false, &block_) click to toggle source
# File lib/sawmill/railtie.rb, line 139
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/railtie.rb, line 129
def pre_logger(proc_=false, &block_)
  if block_
    @pre_logger = block_
  elsif proc_ != false
    @pre_logger = proc_
  end
  @pre_logger
end