[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Re: ANNOUNCE: CGI::Application::Plugin::LogDispatch



Rob Kinyon wrote:
> Personally, I'd add a few changes:
> 
> 1) Create a param(), not a direct object access. So, instead of
> $self->{logger}, I'd use $self->param( 'logger' );
> 2) Create a logger() method that looks like:
> sub logger { $_[0]->param( 'logger' ) }
> 
> So, now you have
> 
> $self->logger->error( "Uh-oh" );
> 
> The overhead is very small compared with the maintenance gains.

Always hoping to gain more knowledge, what are the maintenance gains here?

--[Lance]

-- 
 Carolina Spirit Quest  http://www.carolinaspiritquest.org/
 Celebrate The Circle   http://www.celebratethecircle.org/
 My LiveJournal  http://www.livejournal.com/users/labrown/
 GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 07B9
 CACert.org Assurer

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.