Changeset 16881
- Timestamp:
- 06/21/13 16:05:13 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/WindowLog.cc
r16832 r16881 51 51 fMuxCout.lock(); 52 52 53 for (unsigned int i=0; i<fBacklog.size(); i++) 54 cout << fBacklog[i]; 53 cout.write(fBacklog.data(), fBacklog.size()); 55 54 cout.flush(); 56 55 … … 178 177 // If fWindow is set, output everything to the window, otherwise 179 178 // to cout 180 const string sout = string(fBase, len);181 182 179 if (!fIsNull) 183 180 { … … 186 183 fMuxWindow.lock(); 187 184 if (!fIsNull) 185 { 186 const string sout = string(fBase, len); 188 187 wprintw(fWindow, "%s", sout.c_str()); 188 } 189 189 // If the stream got flushed due to a line break 190 190 // reset all attributes … … 196 196 { 197 197 fMuxCout.lock(); 198 cout << sout;198 cout.write(fBase, len);// << sout; 199 199 // If the stream got flushed due to a line break 200 200 // reset all attributes … … 228 228 } 229 229 230 fQueueFile.emplace( sout);230 fQueueFile.emplace(fBase, len); 231 231 /* 232 232 // Output everything also to the log-file
Note:
See TracChangeset
for help on using the changeset viewer.