From: Moritz Bunkus Date: Wed, 27 Jan 2010 15:30:37 +0000 (+0100) Subject: Möglichkeit, den Dateinamen für Debugmeldungen zu ändern. X-Git-Tag: release-2.6.2beta1~320 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1aa5f1b3c2453672e403cc45d140429747794cf6;p=kivitendo-erp.git Möglichkeit, den Dateinamen für Debugmeldungen zu ändern. --- diff --git a/SL/LXDebug.pm b/SL/LXDebug.pm index efa5f1245..5f5ddf216 100644 --- a/SL/LXDebug.pm +++ b/SL/LXDebug.pm @@ -24,6 +24,7 @@ my $data_dumper_available; our $global_level; our $watch_form; +our $file_name; BEGIN { eval("use Data::Dumper"); @@ -38,7 +39,7 @@ sub new { my $self = {}; $self->{"calldepth"} = 0; - $self->{"file"} = "/tmp/lx-office-debug.log"; + $self->{"file"} = $file_name || "/tmp/lx-office-debug.log"; $self->{"target"} = FILE_TARGET; $self->{"level"} = 0;