Ignore:
Timestamp:
04/28/03 09:52:57 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mmain
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc

    r1976 r2015  
    226226// To disable redirction call SetLogStream(NULL)
    227227//
    228 void MStatusDisplay::SetLogStream(MLog *log)
     228// if enable==kFALSE the stdout is disabled/enabled. Otherwise stdout
     229// is ignored.
     230//
     231void MStatusDisplay::SetLogStream(MLog *log, Bool_t enable)
    229232{
    230233    if (log && fLogBox==NULL)
     
    256259
    257260        log->SetOutputGui(fLogBox, kTRUE);
    258         log->DisableOutputDevice(MLog::eStdout);
    259261        log->EnableOutputDevice(MLog::eGui);
     262        if (!enable)
     263            log->DisableOutputDevice(MLog::eStdout);
    260264
    261265        fLogTimer.Start();
     
    266270
    267271        fLog->DisableOutputDevice(MLog::eGui);
    268         fLog->EnableOutputDevice(MLog::eStdout);
    269272        fLog->SetOutputGui(NULL);
     273        if (!enable)
     274            fLog->EnableOutputDevice(MLog::eStdout);
    270275
    271276        fLog = &gLog;
     
    11341139        if (num<0)
    11351140            *fLog << inf << " - ";
    1136         *fLog << "Writing Tab #" << i << ": " << c->GetName() << " (" << n << ") ";
     1141        *fLog << inf << "Writing Tab #" << i << ": " << c->GetName() << " (" << n << ") ";
    11371142        if (num>0)
    11381143            *fLog << "to " << name;
  • trunk/MagicSoft/Mars/mmain/MStatusDisplay.h

    r1965 r2015  
    105105     virtual ~MStatusDisplay();
    106106
    107      void SetLogStream(MLog *log);
     107     void SetLogStream(MLog *log, Bool_t enable=kFALSE);
    108108
    109109     void StartUpdate(Int_t millisec=-1);
Note: See TracChangeset for help on using the changeset viewer.