Changeset 93
- Timestamp:
- 07.12.2006 19:03:33 (2 years ago)
- Files:
-
- trunk/devel/FuzzyOcr.cf (modified) (1 diff)
- trunk/devel/FuzzyOcr/Logging.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/devel/FuzzyOcr.cf
r82 r93 27 27 28 28 # 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 30 33 # Default value: 1 31 34 #focr_verbose 3 trunk/devel/FuzzyOcr/Logging.pm
r79 r93 47 47 my $conf = FuzzyOcr::Config::get_config(); 48 48 _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)) { 50 50 logfile($_[0]); 51 51 } … … 57 57 _log("info",$_[0]) if $conf->{focr_log_stderr}; 58 58 } 59 if (defined $conf->{focr_logfile} and ($conf->{focr_verbose} <2)) {59 if (defined $conf->{focr_logfile} and ($conf->{focr_verbose} >= 2)) { 60 60 logfile($_[0]); 61 61 } … … 67 67 _log("dbg",$_[0]) if $conf->{focr_log_stderr}; 68 68 } 69 if (defined $conf->{focr_logfile} and ($conf->{focr_verbose} <3)) {69 if (defined $conf->{focr_logfile} and ($conf->{focr_verbose} >= 3)) { 70 70 logfile($_[0]); 71 71 }
