in reply to Sharing a log file across classes...

use Log::Dispatch::Config; # log4j for perl

It's definitely the best logging option out there, supports very flexible logging to all sorts of different destinations, and is very well supported by the author. It provides logging via a singleton, as shown above, so it's very easy to ensure you're logging to the same place(s) from everywhere in your application.

  • Comment on Re: Sharing a log file across classes...