in reply to Redirecting logging and STDERR to a single file

try Log::Log4perl, it will give you everything you need about logging: logging to multiple places (screen, file, syslog, database, etc.), file & line, etc.
  • Comment on Re: Redirecting logging and STDERR to a single file