Re: New project: Log-parser
| From: | Martin Jansen | Date: | Sat, 10 May 2003 10:50:40 +0000 |
| Subject: | Re: New project: Log-parser | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-16101@lists.php.net to get a copy of this message | ||
On Sat May 10, 2003 at 11:5248AM +0200, Tobias Schlitt wrote:
> 80.8.128.45 artikulierte:
> > It would be also good if there would be any way to check if the log has got
> > some errors like with that Read() method we would just get errors from the
> > log like:
>
> > $entries = Log_Parser::Read('/var/log/apache/access.log',
> > 'apache_access','error');
>
> I think we'll use the PEAR::Error-classes to provide error-handling. So it
> would be no problem, to let the object return a concrete error-message and
> code if a parsing-error occurs.
I guess he is talking about filtering the logfile, so that only error
message are returned, but no notices et al.
--
- Martin Martin Jansen
http://martinjansen.com/