Möglichkeit, den Dateinamen für Debugmeldungen zu ändern.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 27 Jan 2010 15:30:37 +0000 (16:30 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 19 Jul 2010 16:11:31 +0000 (18:11 +0200)
SL/LXDebug.pm

index efa5f12..5f5ddf2 100644 (file)
@@ -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;