DeeKnows Homepage

Main menu:

DeeKnow’s Grotto
Friday, 17 May 2002
Logging application errors using 'warn'

Logging application errors using 'warn' - is possible in Perl (thanx ARD) and if you include the CGI::Carp module it will stamp the Time, Date and application address and line number for you as well. Have modified QuickSearch to report failures to match all keywords in a user search. Here's an example error.log entry...

[Fri May 17 15:06:43 2002] quicksearch.cgi: No Matches for [apples oranges] at /usr/local/apache/cgi-bin/quicksearch.cgi line 178.

We can then grep the log file and run reports on demand to show whats not turning up at all in searches.


3:10:06 PM  

May 2002
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Apr   Jun

Todays Reading...
o Steam motorcycle
o UFO Area: Our Special Reports
o SOA Facts
o xkcd - A webcomic of romance, sarcasm, math, and language - By Randall Munroe
o Helen Clarks marijuana speech 1994 Waikato University


WhereAmI RSS

Subscribe with Bloglines

Boring Approved

 


published using...

 


To the Top Top Of Page    Home Home    emailContact Author     Validate    RSS/XML version