Skip to content

Commit

Permalink
mention Log::Any::Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonswar committed Dec 7, 2009
1 parent 3ef78dd commit 97f04a4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/Log/Any.pm
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ There are also printf-style versions of each of these methods:
The printf-style methods have a few advantages. First, they can be more
readable than concatenated strings (subjective of course); second, any complex
references (like C<\@params> above) are automatically converted to single-line
strings with C<Data::Dumper>; third, a logging mechanism could potentially hash
the format string to a unique id, e.g. to group related log messages together.
strings with C<Data::Dumper>; third, a logging mechanism could potentially use
the format string to group related log messages together.
=head2 Log level detection
Expand All @@ -228,6 +228,11 @@ the detection methods will always return 1.
In contrast, the default logging mechanism - Null - will return 0 for all
detection methods.
=head2 Testing
L<Log::Any::Test|Log::Any::Test> provides a mechanism to test code that uses
C<Log::Any>.
=head1 CONSUMING LOGS (FOR APPLICATIONS)
To direct logs somewhere - a file, the screen, etc. - you must use
Expand Down Expand Up @@ -288,9 +293,10 @@ created and cannot (for whatever reason) stop using.
Our intent is to keep C<Log::Any> minimal, and change it only when absolutely
necessary. Most of the "innovation", if any, is expected to occur in
C<Log::Any::Adapter>, which your module should not have to depend on (unless it
wants to direct logs somewhere specific).
wants to direct logs somewhere specific). C<Log::Any> has no module
dependencies other than L<Test::Simple|Test::Simple> for testing.
=item Why doesn't Log::Any use Moose or I<insert modern Perl technique>?
=item Why doesn't Log::Any use I<insert modern Perl technique>?
To encourage CPAN module authors to adopt and use C<Log::Any>, we aim to have
as few dependencies and chances of breakage as possible. Thus, no C<Moose> or
Expand Down

0 comments on commit 97f04a4

Please sign in to comment.