Permalink
Browse files

add example

  • Loading branch information...
1 parent 3db5244 commit 81dbf7eddbe8ac236ffa918a50e66d6a5677f96f Steven Haryanto (on Asus EEEPC) committed Nov 8, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/Log/Any/App.pm
View
@@ -271,6 +271,14 @@ the noisy modules on the screen, but not on the file:
-category_alias => { -noisy => [qw/Foo Bar::Baz Qux/] },
-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

0 comments on commit 81dbf7e

Please sign in to comment.