X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=d19844681791d62be92e982c0f76ec37f67d4c71;hp=1a7b6729af2b3d4ef16fb427a8d19e23377b0642;hb=61b1e958102e2371a79e07a7e2cdbb371797d202;hpb=91dc9907365d9a8b25836d3c3bf68683af18eb7d diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 1a7b672..d198446 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -4,6 +4,8 @@ use strict; use base 'Catalyst::Base'; use UNIVERSAL::require; use Catalyst::Log; +use Text::ASCIITable; +use Text::ASCIITable::Wrap 'wrap'; __PACKAGE__->mk_classdata($_) for qw/engine log/; @@ -177,13 +179,17 @@ sub import { $caller->log->error(qq/Couldn't load plugin "$plugin", "$@"/); } else { - push @plugins, " + $plugin"; + push @plugins, $plugin; no strict 'refs'; push @{"$caller\::ISA"}, $plugin; } } } - $caller->log->debug( 'Loaded plugins', @plugins ) + my $t = Text::ASCIITable->new( { hide_HeadRow => 1, hide_HeadLine => 1 } ); + $t->setCols('Class'); + $t->setColWidth( 'Class', 75, 1 ); + $t->addRow( wrap( $_, 75 ) ) for @plugins; + $caller->log->debug( 'Loaded plugins', $t->draw ) if ( @plugins && $caller->debug ); # Engine @@ -231,8 +237,21 @@ Mailing-Lists: =head1 SEE ALSO -L, L, L, -L, L +=over 4 + +=item L - The Catalyst Manual + +=item L - Core Engine + +=item L - The Log Class. + +=item L - The Request Object + +=item L - The Response Object + +=item L - The test suite. + +=back =head1 AUTHOR