Skip to content

Commit

Permalink
add a few examples for checking the log level
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 19, 2016
1 parent 29dbd85 commit 7075086
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/Mojo/Log.pm
Expand Up @@ -219,7 +219,15 @@ Emit L</"message"> event and log C<info> message.
my $bool = $log->is_level('debug');
Check log L</"level">.
Check active log L</"level">.
# True
$log->level('debug')->is_level('debug');
$log->level('debug')->is_level('info');
# False
$log->level('info')->is_level('debug');
$log->level('fatal')->is_level('warn');
=head2 new
Expand Down

0 comments on commit 7075086

Please sign in to comment.