Hi,

>From all I have read it's considered a best practice to avoid passing
$c to your models and create your model in ways that it can be
independently used (and tested) from Catalyst. That is, create model
classes that are independent from Catalyst and then create a thin glue
layer using Class::Model:;Adaptor or any of it's derivatives like
Factory or InstancePerContext.

So if I want to log something in my independent model class and
connect that logging to the catalyst logger using something like
C:M:Adaptor how would one go about doing that? The idea would be for
the independent class to use similar logging semantics (debug, info,
warn, error, fatal).

TIA,
Alejandro Imass

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to