- somehow the old system from the old docbot is not intuitive, make the new one clear
use Data::Dumper;
-use constant DEBUG2 => 4;
-use constant DEBUG => 3;
-use constant ERROR => 2;
-use constant WARN => 1;
-use constant INFO => 0;
+use constant DEBUG2 => 5;
+use constant DEBUG => 4;
+use constant INFO => 3;
+use constant WARN => 2;
+use constant ERROR => 1;
# new()
# initialize global variables
######################################################################
-use constant DEBUG2 => 4;
-use constant DEBUG => 3;
-use constant ERROR => 2;
-use constant WARN => 1;
-use constant INFO => 0;
+use constant DEBUG2 => 5;
+use constant DEBUG => 4;
+use constant INFO => 3;
+use constant WARN => 2;
+use constant ERROR => 1;
%main::loglevels = (
- 4 => 'DEBUG2',
- 3 => 'DEBUG',
- 2 => 'ERROR',
- 1 => 'WARN',
- 0 => 'INFO',
+ 5 => 'DEBUG2',
+ 4 => 'DEBUG',
+ 3 => 'INFO',
+ 2 => 'WARN',
+ 1 => 'ERROR',
);
$main::loglevel = INFO;