Error Log

Billy Ng kwokng at earthlink.net
Fri May 10 16:01:26 EDT 2002


Thanks!  logfile.py is good for me to start.  I will modify it to output the
xml, so the admin can view it with a xsl.

Billy Ng


"Steve Holden" <sholden at holdenweb.com> wrote in message
news:ONUC8.63050$m26.28142 at atlpnn01.usenetserver.com...
> "Jørgen Hansen" <jorgenhansen at hotmail.com> wrote in message
> news:117880a1.0205101048.2fd9e396 at posting.google.com...
> > "Billy Ng" <kwokng at earthlink.net> wrote in message
> news:<GGQC8.569$Nt3.62535 at newsread2.prod.itd.earthlink.net>...
> > > I need to write a error log module that append the error line into a
log
> > > file every time an exception is thrown.  Would anybody please give me
> input
> > > for how to do it in pytohn, thanks!
> > >
> > > Billy Ng
> >
> > Vinay Sajip has made a logging module:
> > http://www.red-dove.com/python_logging.html which you could look into.
> > I have made a very basic version of it, which I could email with some
> > examples if you want to.
> >
>
> I just realised it might actually be the "get the exception details" that
> Billy is looking for, not the logging stuff. In which case a look at the
> recent (2.2, I believe) cgitb module might help. If not, a further
> alternative is
>
>     http://www.holdenweb.com/Python/PDCode/logfile.py
>
> regards
>  Steve
> --
> -----------------------------------------------------------------------
> Steve Holden                                 http://www.holdenweb.com/
> Python Web Programming                http://pydish.holdenweb.com/pwp/
> -----------------------------------------------------------------------
>
>
>
>
>
>





More information about the Python-list mailing list