Changeset 075729 for molecuilder/src/unittests/logunittest.cpp
- Timestamp:
- Apr 27, 2010, 2:25:42 PM (15 years ago)
- Children:
- 90c4460
- Parents:
- 1561e2 (diff), 2bc713 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/logunittest.cpp
r1561e2 r075729 41 41 { 42 42 logger::getInstance().setVerbosity(2); 43 Log() << Verbose(0) << "Verbosity level is set to 2." << endl;44 Log() << Verbose(0) << "Test level 0" << endl;45 Log() << Verbose(1) << "Test level 1" << endl;46 Log() << Verbose(2) << "Test level 2" << endl;47 Log() << Verbose(3) << "Test level 3" << endl;48 Log() << Verbose(4) << "Test level 4" << endl;43 DoLog(0) && (Log() << Verbose(0) << "Verbosity level is set to 2." << endl); 44 DoLog(0) && (Log() << Verbose(0) << "Test level 0" << endl); 45 DoLog(1) && (Log() << Verbose(1) << "Test level 1" << endl); 46 DoLog(2) && (Log() << Verbose(2) << "Test level 2" << endl); 47 DoLog(3) && (Log() << Verbose(3) << "Test level 3" << endl); 48 DoLog(4) && (Log() << Verbose(4) << "Test level 4" << endl); 49 49 50 Log() << Verbose(0) << "Output a log message." << endl;51 eLog() << Verbose(0) << "Output an error message." << endl;50 DoLog(0) && (Log() << Verbose(0) << "Output a log message." << endl); 51 DoeLog(0) && (eLog()<< Verbose(0) << "Output an error message." << endl); 52 52 setVerbosity(3); 53 Log() << Verbose(4) << "This should not be printed." << endl;54 eLog() << Verbose(4) << "This should not be printed." << endl;53 DoLog(4) && (Log() << Verbose(4) << "This should not be printed." << endl); 54 DoeLog(4) && (eLog()<< Verbose(4) << "This should not be printed." << endl); 55 55 };
Note:
See TracChangeset
for help on using the changeset viewer.