Changeset 93

Show
Ignore:
Timestamp:
07.12.2006 19:03:33 (2 years ago)
Author:
decoder
Message:

Fixed Logging levels, Logging.pm used the wrong arithmetic to compare verbose levels
Added description of the levels in .cf file

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/devel/FuzzyOcr.cf

    r82 r93  
    2727 
    2828# Verbosity level (see manual) 
    29 # Attention: Don't set to 0, but to 0.0 for quiet operation. 
     29# Level 0 - Errors only 
     30# Level 1 - Errors and Warnings 
     31# Level 2 - Errors, Warnings and Info Messages 
     32# Level 3 - Full debug output 
    3033# Default value: 1 
    3134#focr_verbose 3 
  • trunk/devel/FuzzyOcr/Logging.pm

    r79 r93  
    4747    my $conf = FuzzyOcr::Config::get_config(); 
    4848    _log("warn",$_[0]) if $conf->{focr_log_stderr}; 
    49     if (defined $conf->{focr_logfile} and ($conf->{focr_verbose} < 1)) { 
     49    if (defined $conf->{focr_logfile} and ($conf->{focr_verbose} >= 1)) { 
    5050        logfile($_[0]); 
    5151    } 
     
    5757        _log("info",$_[0]) if $conf->{focr_log_stderr}; 
    5858    } 
    59     if (defined $conf->{focr_logfile} and ($conf->{focr_verbose} < 2)) { 
     59    if (defined $conf->{focr_logfile} and ($conf->{focr_verbose} >= 2)) { 
    6060        logfile($_[0]); 
    6161    } 
     
    6767        _log("dbg",$_[0]) if $conf->{focr_log_stderr}; 
    6868    } 
    69     if (defined $conf->{focr_logfile} and ($conf->{focr_verbose} < 3)) { 
     69    if (defined $conf->{focr_logfile} and ($conf->{focr_verbose} >= 3)) { 
    7070        logfile($_[0]); 
    7171    }