Changeset 2279 for box/trunk/lib/common/Logging.cpp
- Timestamp:
- 13/09/2008 16:11:35 (4 years ago)
- File:
-
- 1 edited
-
box/trunk/lib/common/Logging.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/lib/common/Logging.cpp
r2231 r2279 36 36 Log::Level Logging::sGlobalLevel = Log::EVERYTHING; 37 37 Logging Logging::sGlobalLogging; //automatic initialisation 38 std::string Logging::sProgramName; 38 39 39 40 Logging::Logging() … … 207 208 void Logging::SetProgramName(const std::string& rProgramName) 208 209 { 210 sProgramName = rProgramName; 211 209 212 for (std::vector<Logger*>::iterator i = sLoggers.begin(); 210 213 i != sLoggers.end(); i++) … … 231 234 std::string Console::sTag; 232 235 233 void Console::SetTag(const std::string& rTag) 234 { 235 sTag = rTag; 236 sShowTag = true; 236 void Console::SetProgramName(const std::string& rProgramName) 237 { 238 sTag = rProgramName; 239 } 240 241 void Console::SetShowTag(bool enabled) 242 { 243 sShowTag = enabled; 237 244 } 238 245
Note: See TracChangeset
for help on using the changeset viewer.
