Index: trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc
===================================================================
--- trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc	(revision 1977)
+++ trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc	(revision 2015)
@@ -226,5 +226,8 @@
 // To disable redirction call SetLogStream(NULL)
 //
-void MStatusDisplay::SetLogStream(MLog *log)
+// if enable==kFALSE the stdout is disabled/enabled. Otherwise stdout
+// is ignored.
+//
+void MStatusDisplay::SetLogStream(MLog *log, Bool_t enable)
 {
     if (log && fLogBox==NULL)
@@ -256,6 +259,7 @@
 
         log->SetOutputGui(fLogBox, kTRUE);
-        log->DisableOutputDevice(MLog::eStdout);
         log->EnableOutputDevice(MLog::eGui);
+        if (!enable)
+            log->DisableOutputDevice(MLog::eStdout);
 
         fLogTimer.Start();
@@ -266,6 +270,7 @@
 
         fLog->DisableOutputDevice(MLog::eGui);
-        fLog->EnableOutputDevice(MLog::eStdout);
         fLog->SetOutputGui(NULL);
+        if (!enable)
+            fLog->EnableOutputDevice(MLog::eStdout);
 
         fLog = &gLog;
@@ -1134,5 +1139,5 @@
         if (num<0)
             *fLog << inf << " - ";
-        *fLog << "Writing Tab #" << i << ": " << c->GetName() << " (" << n << ") ";
+        *fLog << inf << "Writing Tab #" << i << ": " << c->GetName() << " (" << n << ") ";
         if (num>0)
             *fLog << "to " << name;
Index: trunk/MagicSoft/Mars/mmain/MStatusDisplay.h
===================================================================
--- trunk/MagicSoft/Mars/mmain/MStatusDisplay.h	(revision 1977)
+++ trunk/MagicSoft/Mars/mmain/MStatusDisplay.h	(revision 2015)
@@ -105,5 +105,5 @@
      virtual ~MStatusDisplay();
 
-     void SetLogStream(MLog *log);
+     void SetLogStream(MLog *log, Bool_t enable=kFALSE);
 
      void StartUpdate(Int_t millisec=-1);
