Changeset 6007 for code/branches/console/src/libraries/util
- Timestamp:
- Oct 30, 2009, 5:26:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/libraries/util/OutputHandler.cc
r6004 r6007 70 70 called from getInstance!) 71 71 */ 72 LogFileWriter( OutputHandler& outputHandler)72 LogFileWriter() 73 73 : OutputListener(OutputHandler::logFileOutputListenerName_s) 74 74 { … … 92 92 93 93 this->outputStream_ = &this->logFile_; 94 // Use default level until we get the configValue from the Core95 this->setSoftDebugLevel(OutputLevel::Debug);96 outputHandler.registerOutputListener(this);97 94 } 98 95 … … 147 144 called from getInstance!) 148 145 */ 149 MemoryLogWriter( OutputHandler& outputHandler)146 MemoryLogWriter() 150 147 : OutputListener("memoryLog") 151 148 { 152 149 this->outputStream_ = &this->buffer_; 153 // We capture as much input as the listener with the highest level154 this->setSoftDebugLevel(OutputHandler::getSoftDebugLevel());155 outputHandler.registerOutputListener(this);156 150 } 157 151 … … 182 176 : outputLevel_(OutputLevel::Verbose) 183 177 { 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_); 186 187 } 187 188
Note: See TracChangeset
for help on using the changeset viewer.