21 August 2006
This post may be outdated due to it was written on 2006. The links may be broken. The code may be not working anymore. Leave comments if needed.
it seems that ConfigLoader and Log::Log4perl in Catalyst are not such perfect.

ConfigLoader cann't load more than 2 yaml files like "a.yml", "b.yml", "c.yml".(Am I missing something?) but Config::YAML does.
use Catalyst qw/ .. Config::YAML ../;
__PACKAGE__->config('config_file' => ['a.yml', 'b.yml', 'c.yml']);

and when I setup the Catalyst::Log::Log4perl up, but it sucks. the log conf is something like:
log4perl.logger.Foorum=DEBUG, Log

log4perl.appender.Log.layout.ConversionPattern=%d %p> %F{1}:%L %M - %m%n
and script like:
# Log4perl
use Catalyst::Log::Log4perl;
but the foorum.log shows:
2006/08/21 19:10:55 DEBUG> Catalyst.pm:1457 Catalyst::handle_request - debug
2006/08/21 19:10:55 INFO> Catalyst.pm:1457 Catalyst::handle_request - info
the "Catalyst.pm 1457 Catalyst::handle_request" is useless. mm, Am I missing something too?

blog comments powered by Disqus