Hi

I have a small script that runs daemonized and does some basic SQL
operations.

I was wondering if it possible that in case of an exception the program
 could send an email with the exception, and at the same time log it in
a file.

I looked over log4r, however I couldn't get it to log exceptions.

Thanks,
Radu Spineanu