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

2004-12-13 Thread Rob Kinyon
: CGI::Application::Plugin::LogDispatch On 2004-12-13, Cees Hek [EMAIL PROTECTED] wrote: On Mon, 13 Dec 2004 10:32:43 +0900, Thilo Planz [EMAIL PROTECTED] wrote: I finally got around to wrapping up my Log::Dispatch plugin for CGI::App. I would appreciate some feedback on the features

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

2004-12-13 Thread Michael Peters
Dan Horne wrote: I currently use Log4Perl with C::A but I'm sure that even though it's not a via plugin, I'm using it in an inefficient manner - any advice appreciated. In my base class, I set up the name of my config file using CGI::Application::Plugin::ConfigAuto. I my prerun mode I go

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

2004-12-13 Thread Dan Horne
Thanks to all who responded - cleared things up a bit. Quoting Michael Peters [EMAIL PROTECTED]: If you are interested, I've been meaning to make a CAP::Log4perl plugin but haven't had the time just yet. I will in a few days though. If you wanted to you could take a shot at it yourself.

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

2004-12-13 Thread Lance A. Brown
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

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

2004-12-13 Thread Mark Stosberg
On 2004-12-13, Dan Horne [EMAIL PROTECTED] wrote: $self-{logger} = get_logger(cms); This breaks the principle of encapsulation of Object Oriented Programming. A benefit of objects is that they hide wants inside them. Here you are going through a 'back door' rather than using the