]> diplodocus.org Git - minc/commitdiff
Move definition of logging constants to logging section.
authorepg <>
Tue, 27 Aug 2002 01:29:30 +0000 (01:29 +0000)
committerepg <>
Tue, 27 Aug 2002 01:29:30 +0000 (01:29 +0000)
minc

diff --git a/minc b/minc
index c192e59..6197d22 100755 (executable)
--- a/minc
+++ b/minc
@@ -34,19 +34,6 @@ use Log::Dispatch;
 use Log::Dispatch::File;
 use POSIX qw(strftime WEXITSTATUS WIFEXITED);
 
-# debuglevels for the logger
-use constant LOG_DEBUGLEVEL     => 'info';
-use constant SCREEN_DEBUGLEVEL  => 'debug';
-
-# characters used to wrap around the id field in the log so I can more
-# easily parse the msg flow
-use constant DEBUGCHAR          => '%';
-use constant INFOCHAR           => '=';
-use constant INCOMINGCHAR       => '<';
-use constant SAVECHAR           => '>';
-use constant WARNCHAR           => 'W';
-use constant ERRORCHAR          => 'E';
-
 =head1 OPTIONS
 
 =over 4
@@ -164,6 +151,19 @@ if ($run) {
 ###############################################################################
 # Logging
 
+# debuglevels for the logger
+use constant LOG_DEBUGLEVEL     => 'info';
+use constant SCREEN_DEBUGLEVEL  => 'debug';
+
+# characters used to wrap around the id field in the log so I can more
+# easily parse the msg flow
+use constant DEBUGCHAR          => '%';
+use constant INFOCHAR           => '=';
+use constant INCOMINGCHAR       => '<';
+use constant SAVECHAR           => '>';
+use constant WARNCHAR           => 'W';
+use constant ERRORCHAR          => 'E';
+
 my $logger = new Log::Dispatch;
 $logger->add(new Log::Dispatch::File (name=>'logfile',
                                       filename=>$logfile,