Error Log

Billy Ng kwokng at earthlink.net
Fri May 10 14:52:22 EDT 2002


I hear you.  I'll give it a shot, thanks!

Billy Ng

"Steve Holden" <sholden at holdenweb.com> wrote in message
news:J%TC8.62028$m26.45083 at atlpnn01.usenetserver.com...
> "Billy Ng" <kwokng at earthlink.net> wrote ...
> > Good stuff!  but the debian linux do not have this module to downloand.
> >
> > Billy Ng
> >
> > "Mark McEahern" <marklists at mceahern.com> wrote in message
> > news:mailman.1021042877.24965.python-list at python.org...
> > > [Billy Ng]
> > > > 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!
> > >
> > > There's a PEP for adding this to Python's standard library:
> > >
> > >   http://www.python.org/peps/pep-0282.html
> > >
> > > Also, see this:
> > >
> > >   http://www.red-dove.com/python_logging.html
> > >
> > > Cheers,
> > >
> > > // mark
> > >
>
> Billy, you're just going to have to be brave and install something that
> Debian haven't packaged for you!
>
> From the web page Mark linked to: """It is packaged as a single file,
> logging.py. You just need to import logging and you're ready to go."""
>
> It really won't be difficult, and you can ship it with your program if you
> are planning to distribute something.
>
> regards
>  Steve
> --
> -----------------------------------------------------------------------
> Steve Holden                                 http://www.holdenweb.com/
> Python Web Programming                http://pydish.holdenweb.com/pwp/
> -----------------------------------------------------------------------
>
>
>
>
>
>





More information about the Python-list mailing list