this happens to me also, does anyone know what is wrong?
thanks

On 8/19/07, ShiaoBu <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm having a hard time using the logging module within an app based on
> web.py. I'm certainly missing something obvious, but I can't find out
> what.
>
> This behaves as expected (1 log entry for each logged event):
>
> logging.basicConfig(level=logging.DEBUG, filename='/tmp/foo.log')
>
> But the following results in 2 entries for each logged event:
>
> applog = logging.getLogger()
> applog.setLevel(logging.DEBUG)
> hdl = logging.FileHandler('/tmp/foo.log')
> applog.addHandler(hdl)
>
> Any clue would be more than welcome.
>
> best,
> ShiaoBu
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to