[Catalyst] best practice for a protocol mechanism?

Tomas Doran bobtfish at bobtfish.net
Thu Sep 10 00:41:29 GMT 2009

On 9 Sep 2009, at 21:35, Bernhard Graf wrote:

> Zbigniew Lukasiak wrote:
>> I am not entirely sure that I understand what you mean by protocol
>> action - but how about a plain old method call:
>> MyApp::Controller::Root->myProtocolAction( $c, "some message that
>> should be protocolled" );
> I think Jens is talking about logging (German: "protokollieren").

I'm guesstimating that he means 'I end up with this template code at  
the end of loads of my actions, which forwards somewhere with various  

Which I'd guess _could maybe_ be accomplished in a neater way with an  
ActionRole which said 'after execute => sub {..etc..'

> But without further detail from his side it's hard to give good  
> advice,
> I think.

You said it, the above is pure speculation :)


More information about the Catalyst mailing list