Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add example

  • Loading branch information...
commit af4ad8d7422bbea89c3bd9a0441688e23a0a57d0 1 parent 9d144e3
Steven Haryanto (on PC) authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 lib/Log/Any/App.pm
View
11 lib/Log/Any/App.pm
@@ -80,7 +80,7 @@ my %PATTERN_STYLES = (
syslog => '[pid %p] %m',
);
-=head1 USING
+=head1 USING AND EXAMPLES
Most of the time you just need to do this from command line:
@@ -140,6 +140,15 @@ If you want to turn off screen logging:
use Log::Any::App -screen => 0;
+Or, to turn screen logging off but allow environment and command line to
+override/enable it later, you can do:
+
+ use Log::Any::App;
+ BEGIN { $Screen_Log_Level = 'off' }
+
+If you then want to enable screen logging temporarily, you can call the script
+with --screen-log-level=debug or set environment SCREEN_VERBOSE=1, etc.
+
Logging to syslog is enabled by default if your script looks like a
daemon, e.g.:
Please sign in to comment.
Something went wrong with that request. Please try again.