Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
sharyanto committed Nov 8, 2010
1 parent 3db5244 commit 81dbf7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/Log/Any/App.pm
Expand Up @@ -271,6 +271,14 @@ the noisy modules on the screen, but not on the file:
-category_alias => { -noisy => [qw/Foo Bar::Baz Qux/] }, -category_alias => { -noisy => [qw/Foo Bar::Baz Qux/] },
-screen => { category_level => { -noisy => 'off' } }; -screen => { category_level => { -noisy => 'off' } };
or perhaps, you want to shut the noisy modules everywhere, except on the screen:
use Log::Any::App '$log',
-category_alias => { -noisy => [qw/Foo Bar::Baz Qux/] },
-category_level => { -noisy => 'off' },
-syslog => 1,
-file => "/var/log/foo",
-screen => { category_level => {} }; # do not do per-category level
=head2 Preventing logging level to be changed from outside the script =head2 Preventing logging level to be changed from outside the script
Expand Down

0 comments on commit 81dbf7e

Please sign in to comment.