From 3ac44613aaf706c083d74bee399ee445420a5f54 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 16 Dec 2009 10:57:11 +0100 Subject: [PATCH] Funktion um abzufragen ob Tracing aktiviert ist. --- SL/LXDebug.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SL/LXDebug.pm b/SL/LXDebug.pm index 3dbd14fe0..059e0ca5e 100644 --- a/SL/LXDebug.pm +++ b/SL/LXDebug.pm @@ -200,6 +200,11 @@ sub disable_sub_tracing { $self->{level} & ~ TRACE; } +sub is_tracing_enabled { + my ($self) = @_; + return $self->{level} & TRACE; +} + sub _write { my ($self, $prefix, $message) = @_; my $date = strftime("%Y-%m-%d %H:%M:%S $$ ${prefix}: ", localtime(time())); -- 2.20.1