in reply to How to create an error log file?

Like chimni, I would also go for Log::Log4perl. I have found it extremely useful and easy to use. I wouldn't think of writing any moderately-sized program without it.

loris