A new version of CGI::Application::Plugin::LogDispatch has been uploaded to CPAN. It should hit the mirrors later today. For those that are impatient, you can download it or browse the distribution from the links listed below.
This version adds support for storing the Log::Dispatch object as a singleton. This means that the Log::Dispatch object is only created once per process, which can be a performance boost in persistent environments like mod_perl and PersitentPerl. Each Log::Dispatch object is stored in the namespace of the module that 'use'ed the plugin. So it is not a true singleton, since you can still have multiple Log::Dispatch objects in memory, but there will ever only be one per module that uses the plugin. This was done so that you can have multiple CGI::App applications running that have different configurations for doing logging. The singleton object will automatically be inherited by subclasses. So if you want all your CGI::App applications to use the same Log::Dispatch instance, then create a serverwide Base class that loads the plugin and have all your applications inherit from this class. The plugin is fully backwards compatible, so you can continue to use it as is, and your Log::Dispatch objects will only last the duration of the request. I probably need to do a bit more work on the docs to make things a little bit clearer. Any help with that would be appreciated. Comments and feedback welcome... Links: http://cees.crtconsulting.ca/perl/modules/CGI-Application-Plugin-LogDispatch-0.03.tar.gz http://cees.crtconsulting.ca/perl/modules/CGI-Application-Plugin-LogDispatch-0.03/ Cheers, -- Cees Hek --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
