Class LogParser::LogEntry
In: lib/production_log/parser.rb
Parent: Object

LogEntry contains a summary of log data for a single request.

Methods

new   parse  

Attributes

db_time  [R]  Total database time
ip  [R]  Requesting IP
page  [R]  Controller and action for this request
queries  [R]  Array of SQL queries containing query type and time taken. The complete text of the SQL query is not saved to reduct memory usage.
render_time  [R]  Total render time.
request_time  [R]  Total request time, including database, render and other.
time  [R]  Time the request was made

Public Class methods

Creates a new LogEntry from the log data in entry.

Public Instance methods

Extracts log data from entry, which is an Array of lines from the same request.

[Validate]