Skip to content
Browse files

bumping up version, changes and docs. New release!

  • Loading branch information...
1 parent d49c250 commit 1bcaf70329d3d64f33c84a2e04e1feb77101aacf @garu committed
Showing with 9 additions and 2 deletions.
  1. +3 −0 Changes
  2. +6 −2 lib/MojoX/Log/Log4perl.pm
View
3 Changes
@@ -1,5 +1,8 @@
Revision history for MojoX-Log-Log4perl
+0.05 2012-08-13
+ Log methods now return $self (Thanks Bob "Stocks" Stockdale for reporting)
+
0.04 2011-10-28
Added option to initialize via init_and_watch() (Marius Kjeldahl)
View
8 lib/MojoX/Log/Log4perl.pm
@@ -4,7 +4,7 @@ use Log::Log4perl;
use warnings;
use strict;
-our $VERSION = '0.04';
+our $VERSION = '0.05';
sub new {
my ($class, $conf_file, $watch) = (@_);
@@ -237,6 +237,8 @@ Below are all log levels from MojoX::Log::Log4perl, in descending priority:
Just like C<< Log::Log4perl >>: "If your configured logging level is WARN, then messages logged with info(), debug(), and trace() will be suppressed. fatal(), error() and warn() will make their way through, because their priority is higher or equal than the configured setting."
+The return value is the log object itself, to allow method chaining and further manipulation.
+
=head2 C<log>
You can also use the C<< log() >> method just like in C<< Mojo::Log >>:
@@ -245,6 +247,8 @@ You can also use the C<< log() >> method just like in C<< Mojo::Log >>:
But nobody does that, really.
+As with the regular logging methods, the return value is the log object itself.
+
=head1 CHECKING LOG LEVELS
if ($logger->is_debug) {
@@ -402,7 +406,7 @@ L<< Log::Log4perl >>, L<< Mojo::Log >>, L<< Mojo >>, L<< Mojolicious >>
=head1 COPYRIGHT & LICENSE
-Copyright 2009-2011 Breno G. de Oliveira, all rights reserved.
+Copyright 2009-2012 Breno G. de Oliveira, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.

0 comments on commit 1bcaf70

Please sign in to comment.
Something went wrong with that request. Please try again.