in reply to Web App logging

I'm not positive that the file handle stuff is 100% OK -- it looks fine, that's just the first place I'd start. Try calling your logger from a command line, and follow through using the debugger. That should show up the problem.

(My guess is that the logger stream is by accident going to STDOUT -- to the web page -- which is causing the complaints.)

<Opinion> I am probably biased against using OO everywhere .. I have written loggers before, and I don't leave the file handle open between calls. Every call in my logger is an open/write/close cycle, so that if the script dies badly, no buffers are left unflushed. Sure, it's way inefficient, but that's for development. A production logger I'd make much smarter. </Opinion>

--t. alex

"Of course, you realize that this means war." -- Bugs Bunny.