use constant INFO => 1;
use constant DEBUG1 => 2;
use constant DEBUG2 => 3;
+use constant QUERY => 4;
use constant FILE_TARGET => 0;
use constant STDERR_TARGET => 1;
}
if ($log_level >= $level) {
- $self->_write(INFO == $level
- ? "info"
- : DEBUG1 == $level ? "debug1" : "debug2",
- $message);
+ $self->_write(INFO == $level ? "info"
+ : DEBUG1 == $level ? "debug1"
+ : DEBUG2 == $level ? "debug2"
+ : QUERY == $level ? "query":"",
+ $message );
}
}
sub disable_sub_tracing {
my ($self) = @_;
- $self->{"trace_subs"} = 1;
+ $self->{"trace_subs"} = 0;
}
sub _write {
# Globale Debug-Ausgaben (de-)aktivieren? Moegliche Werte sind
-# LXDebug::NONE, LXDebug::INFO, LXDebug::DEBUG1 und LXDebug::DEBUG2
+# LXDebug::NONE, LXDebug::INFO, LXDebug::DEBUG1, LXDebug::DEBUG2, LXDebug::QUERY
$LXDebug::global_level = LXDebug::NONE;
$LXDebug::global_trace_subs = 0;