in reply to How to create an error log file?

You can have a look at the Log4perl module. The documentation is quite good .Simple to implement regards, chimni