[Catalyst-dev] Log not being setup properly

Matt S Trout dbix-class at trout.me.uk
Wed Sep 27 14:53:42 CEST 2006


Adam Jacob wrote:
> On Sep 26, 2006, at 1:06 PM, Matt S Trout wrote:
> 
>> Jonathan Rockway wrote:
>>> I was looking through the Catalyst.pm code today and noticed that the
>>> log level isn't set during setup_log.  Is this a feature, or a  
>>> bug?  I
>>> couldn't get the "use Catalyst qw/-Log=level/" to work at all.
>> Never seen that syntax before. See no reason not to take a patch  
>> for it if it
>> has tests with, though.
> 
> I'm not sure it would be good to ever patch Catalyst::Log::Log4perl  
> to follow that advice, though.  I suppose you could make the default  
> configuration obey it..

Yeah, I'm assuming that's mostly just a shortcut for default log levels in the 
absence of config.

Actually ... shouldn't -Log determine the type of logger? i.e. -Log=Log4Perl 
just like -Engine= and -Dispatcher= work?

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst-dev mailing list