- Timestamp:
- Oct 30, 2009, 12:39:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/libraries/util/OutputHandler.cc
r6000 r6004 93 93 this->outputStream_ = &this->logFile_; 94 94 // Use default level until we get the configValue from the Core 95 outputHandler.setSoftDebugLevel(this->getOutputListenerName(),OutputLevel::Debug);95 this->setSoftDebugLevel(OutputLevel::Debug); 96 96 outputHandler.registerOutputListener(this); 97 97 } … … 152 152 this->outputStream_ = &this->buffer_; 153 153 // We capture as much input as the listener with the highest level 154 outputHandler.setSoftDebugLevel(this->getOutputListenerName(),OutputHandler::getSoftDebugLevel());154 this->setSoftDebugLevel(OutputHandler::getSoftDebugLevel()); 155 155 outputHandler.registerOutputListener(this); 156 156 } 157 157 158 158 //! Pushed the just written output to the internal array 159 void outputChanged( )159 void outputChanged(int level) 160 160 { 161 161 // Read ostringstream and store it 162 this->output_.push_back(std::make_pair( OutputHandler::getInstance().getOutputLevel(), this->buffer_.str()));162 this->output_.push_back(std::make_pair(level, this->buffer_.str())); 163 163 // Clear content and flags 164 164 this->buffer_.str(std::string()); … … 210 210 } 211 211 this->listeners_.push_back(listener); 212 // Update global soft debug level 213 this->setSoftDebugLevel(listener->getOutputListenerName(), listener->getSoftDebugLevel()); 212 214 } 213 215
Note: See TracChangeset
for help on using the changeset viewer.