in reply to Log to a file, but also log individual function to an email

Just beware that, in some cases, sending an e-mail can be quite slow (and can slow down your application, if that matters), and, also, receiving too many e-mails leads to people just discarding them (or creating rules to send them to unwanted mails). You can log as many lines as you want through Log4Perl (although, here also, too much information might kill useful information), but receiving too many automatic emails is just a pain in the as*... hmm, well, in the neck. I get dozens of these automatic mails every day, I just no longer read them.
  • Comment on Re: Log to a file, but also log individual function to an email