X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FLog.pm;h=a131821719f2952209d239f9ea53dde114bcd1a3;hb=d14f912340c595a28dd86e273ad386390e570b32;hp=e1953b23e84c1b1cdd7ab044556701cbf0ef3f55;hpb=4090e3bb3fea1a73ac369250e31584d61428b808;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Log.pm b/lib/Catalyst/Log.pm index e1953b2..a131821 100644 --- a/lib/Catalyst/Log.pm +++ b/lib/Catalyst/Log.pm @@ -1,7 +1,10 @@ package Catalyst::Log; use Moose; +with 'MooseX::Emulate::Class::Accessor::Fast'; + use Data::Dump; +use Class::MOP (); our %LEVELS = (); @@ -12,7 +15,7 @@ has abort => (is => 'rw'); { my @levels = qw[ debug info warn error fatal ]; - my $meta = __PACKAGE__->meta; + my $meta = Class::MOP::get_metaclass_by_name(__PACKAGE__); for ( my $i = 0 ; $i < @levels ; $i++ ) { my $name = $levels[$i]; @@ -99,7 +102,7 @@ sub _send_to_log { } no Moose; -__PACKAGE__->meta->make_immutable(); +__PACKAGE__->meta->make_immutable(inline_constructor => 0); 1; @@ -239,11 +242,9 @@ over the log output. L. -=head1 AUTHOR +=head1 AUTHORS -Sebastian Riedel, C -Marcus Ramberg, C -Christian Hansen, C +Catalyst Contributors, see Catalyst.pm =head1 COPYRIGHT