-*.swp
-/Build
-/_build
-/*.bak
-/*.old
-/blib
-/*gz
-/inc
-/pm_to_blib
-/Makefile
-/MANIFEST
-/META.yml
-/MYMETA.yml
-/MYMETA.json
-/README
+.build
+Log-Contextual-*
-Revision history for Log-Contextual
+Revision history for {{$dist->name}}
+
+{{$NEXT}}
0.006000 2013-09-05
- Add Log::Contextual::Easy::Default for simple LC usage (Jakob Voß)
+++ /dev/null
-^(?!script/\w+\.pl|examples/[^\.]+|lib/[\/\w]+\.p(m|od)|inc/|t/\w+\.t|t/lib/[\/\w]+\.pm|t/\w+\.conf|Makefile.PL$|README$|MANIFEST$|Changes$|META.yml$)
+++ /dev/null
-use 5.006;
-use inc::Module::Install 0.91;
-use strict;
-use warnings FATAL => 'all';
-
-perl_version '5.006';
-all_from 'lib/Log/Contextual.pm';
-requires 'Data::Dumper::Concise';
-requires 'Exporter::Declare' => 0.111;
-requires 'Carp';
-requires 'Scalar::Util';
-requires 'Moo' => 1.003000;
-
-test_requires 'Test::Fatal';
-
-WriteAll;
--- /dev/null
+requires 'Data::Dumper::Concise' => 0;
+requires 'Exporter::Declare' => 0.111;
+requires 'Carp' => 0;
+requires 'Scalar::Util' => 0;
+requires 'Moo' => 1.003000;
+
+on test => sub {
+ requires 'Test::Fatal';
+}
--- /dev/null
+name = Log-Contextual
+author = Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
+license = Perl_5
+copyright_holder = Arthur Axel "fREW" Schmidt
+version = 0.006000
+
+[NextRelease]
+[@Git]
+[@Basic]
+[GithubMeta]
+issues = 1
+[MetaJSON]
+[PkgVersion]
+[ReadmeFromPod]
+[PodSyntaxTests]
+[Prereqs::FromCPANfile]
package Log::Contextual;
+# ABSTRACT: Simple logging interface with a contextual log
+
use strict;
use warnings;
-our $VERSION = '0.006000';
-$VERSION = eval $VERSION
- if $VERSION =~ /_/; # numify for warning-free dev releases
-
my @levels = qw(debug trace warn info error fatal);
use Exporter::Declare;
__END__
-=head1 NAME
-
-Log::Contextual - Simple logging interface with a contextual log
-
=head1 SYNOPSIS
use Log::Contextual qw( :log :dlog set_logger with_logger );
of Log::Contextual may overload router() to return instances of custom log routers that
could for example work with loggers that use a different interface.
-=head1 AUTHOR
-
-frew - Arthur Axel "fREW" Schmidt <frioux@gmail.com>
-
=head1 CONTRIBUTORS
=encoding utf8
mst - Matt S. Trout <mst@shadowcat.co.uk>
-=head1 COPYRIGHT
-
-Copyright (c) 2012 the Log::Contextual L</AUTHOR> and L</DESIGNER> as listed
-above.
-
-=head1 LICENSE
-
-This library is free software and may be distributed under the same terms as
-Perl 5 itself.
-
=cut
package Log::Contextual::Easy::Default;
+# ABSTRACT: Import all logging methods with WarnLogger as default
+
+use strict;
+use warnings;
+
use base 'Log::Contextual';
sub arg_default_logger {
__END__
-=head1 NAME
-
-Log::Contextual::Easy::Default - Import all logging methods with WarnLogger as default
-
=head1 SYNOPSIS
In your module:
=over 4
-=item L<Log::Contextual>
-
=item L<Log::Contextual::Easy::Package>
=back
package Log::Contextual::Easy::Package;
+# ABSTRACT: Import all logging methods with WarnLogger as default package logger
+
+use strict;
+use warnings;
+
use base 'Log::Contextual';
sub arg_package_logger {
__END__
-=head1 NAME
-
-Log::Contextual::Easy::Package - Import all logging methods with WarnLogger as default package logger
-
=head1 SYNOPSIS
In your module:
=over 4
-=item L<Log::Contextual>
-
=item L<Log::Contextual::Easy::Default>
=back
package Log::Contextual::Role::Router;
+# ABSTRACT: Abstract interface between loggers and logging code blocks
+
use Moo::Role;
requires 'before_import';
__END__
-=head1 NAME
-
-Log::Contextual::Role::Router - Abstract interface between loggers and logging code blocks
-
=head1 SYNOPSIS
package MyApp::Log::Router;
=back
=back
-
-=head1 SEE ALSO
-
-=over 4
-
-=item C<Log::Contextual>
-
-=back
-
-
package Log::Contextual::SimpleLogger;
+# ABSTRACT: Super simple logger made for playing with Log::Contextual
+
+
use strict;
use warnings;
__END__
-=head1 NAME
-
-Log::Contextual::SimpleLogger - Super simple logger made for playing with Log::Contextual
-
=head1 SYNOPSIS
use Log::Contextual::SimpleLogger;
say q{fatal'ing} if $l->is_fatal;
-=head1 AUTHOR
-
-See L<Log::Contextual/"AUTHOR">
-
-=head1 COPYRIGHT
-
-See L<Log::Contextual/"COPYRIGHT">
-
-=head1 LICENSE
-
-See L<Log::Contextual/"LICENSE">
-
=cut
package Log::Contextual::TeeLogger;
+# ABSTRACT: Output to more than one logger
+
use strict;
use warnings;
__END__
-=head1 NAME
-
-Log::Contextual::TeeLogger - Output to more than one logger
-
=head1 SYNOPSIS
use Log::Contextual::SimpleLogger;
say q{fatal'ing} if $l->is_fatal;
-=head1 AUTHOR
-
-See L<Log::Contextual/"AUTHOR">
-
-=head1 COPYRIGHT
-
-See L<Log::Contextual/"COPYRIGHT">
-
-=head1 LICENSE
-
-See L<Log::Contextual/"LICENSE">
-
=cut
package Log::Contextual::WarnLogger;
+# ABSTRACT: logger for libraries using Log::Contextual
+
use strict;
use warnings;
__END__
-=head1 NAME
-
-Log::Contextual::WarnLogger - Simple logger for libraries using Log::Contextual
-
=head1 SYNOPSIS
package My::Package;
If different levels are specified, appropriate is_$level functions work as you
would expect.
-=head1 AUTHOR
-
-See L<Log::Contextual/"AUTHOR">
-
-=head1 COPYRIGHT
-
-See L<Log::Contextual/"COPYRIGHT">
-
-=head1 LICENSE
-
-See L<Log::Contextual/"LICENSE">
-
=cut
Test::PerlTidy::run_tests(
path => '.',
perltidyrc => '.perltidyrc',
- exclude => ['inc/'],
+ exclude => ['.build/'],
);
done_testing;