| Path: | lib/production_log/parser.rb |
| Last Update: | Tue Nov 08 11:30:37 PST 2005 |
LogParser parses a Syslog log file looking for lines logged by the ‘rails’ program. A typical log line looks like this:
Mar 7 00:00:20 online1 rails[59600]: Person Load (0.001884) SELECT * FROM people WHERE id = 10519 LIMIT 1
LogParser does not work with Rails’ default logger because there is no way to group all the log output of a single request. You must use SyslogLogger.