Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 30, 2009, 5:26:28 PM (15 years ago)
Author:
rgrieder
Message:

Fixed IOConsole partly and fixed two problems in PathConfig and OutputHandler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/libraries/util/OutputHandler.cc

    r6004 r6007  
    7070            called from getInstance!)
    7171        */
    72         LogFileWriter(OutputHandler& outputHandler)
     72        LogFileWriter()
    7373            : OutputListener(OutputHandler::logFileOutputListenerName_s)
    7474        {
     
    9292
    9393            this->outputStream_ = &this->logFile_;
    94             // Use default level until we get the configValue from the Core
    95             this->setSoftDebugLevel(OutputLevel::Debug);
    96             outputHandler.registerOutputListener(this);
    9794        }
    9895
     
    147144            called from getInstance!)
    148145        */
    149         MemoryLogWriter(OutputHandler& outputHandler)
     146        MemoryLogWriter()
    150147            : OutputListener("memoryLog")
    151148        {
    152149            this->outputStream_ = &this->buffer_;
    153             // We capture as much input as the listener with the highest level
    154             this->setSoftDebugLevel(OutputHandler::getSoftDebugLevel());
    155             outputHandler.registerOutputListener(this);
    156150        }
    157151
     
    182176        : outputLevel_(OutputLevel::Verbose)
    183177    {
    184         this->logFile_ = new LogFileWriter(*this);
    185         this->output_  = new MemoryLogWriter(*this);
     178        this->logFile_ = new LogFileWriter();
     179        // Use default level until we get the configValue from the Core
     180        this->logFile_->softDebugLevel_ = OutputLevel::Debug;
     181        this->registerOutputListener(this->logFile_);
     182
     183        this->output_  = new MemoryLogWriter();
     184        // We capture as much input as the listener with the highest level
     185        this->output_->softDebugLevel_ = getSoftDebugLevel();
     186        this->registerOutputListener(this->output_);
    186187    }
    187188
Note: See TracChangeset for help on using the changeset viewer.