There are some rather elaborate logging modules out there, I usually use
Log::Log4perl, since I've been using log4j for my java projects. I did find Log4perl a little too big for many small modules, so a "Loggable" base class like this might be a better solution for those cases.