Class RailsStat
In: lib/analyzer_tools/rails_stat.rb
Parent: Object

RailsStat displays a the current requests and lines logged per second. Default interval is 10 seconds.

Methods

new   print   start   start  

Attributes

lines  [R] 
status  [R]  Current status line
thread  [R]  The log reading thread

Public Class methods

Creates a new RailsStat that will listen on io and print every interval seconds. offset is only used for multi-file support.

  RailsStat.start 'online-43things.log', 'online-43people.log', 10

Starts a new RailsStat for filenames that prints every interval seconds.

Stats for multiple log files requires curses.

Public Instance methods

Starts the RailsStat running. This method never returns.

[Validate]