Initial source commit
This commit is contained in:
commit
f1384c11ee
335 changed files with 52715 additions and 0 deletions
42
minorGems/util/log/testLog.cpp
Normal file
42
minorGems/util/log/testLog.cpp
Normal file
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* Modification History
|
||||
*
|
||||
* 2002-February-25 Jason Rohrer
|
||||
* Created.
|
||||
*/
|
||||
|
||||
|
||||
#include "AppLog.h"
|
||||
#include "FileLog.h"
|
||||
|
||||
#include "Log.h"
|
||||
|
||||
|
||||
int main() {
|
||||
|
||||
AppLog::warning( "A test warning" );
|
||||
AppLog::warning( "Another test warning" );
|
||||
AppLog::warning( "mainApp", "And Another test warning" );
|
||||
|
||||
AppLog::setLoggingLevel( Log::ERROR_LEVEL );
|
||||
|
||||
AppLog::warning( "Yet Another test warning" );
|
||||
AppLog::error( "mainApp", "A test error" );
|
||||
|
||||
|
||||
AppLog::setLog( new FileLog( "test.log" ) );
|
||||
|
||||
// this should be skipped
|
||||
AppLog::warning( "A second test warning" );
|
||||
// this should not be
|
||||
AppLog::criticalError( "A critical error" );
|
||||
|
||||
|
||||
AppLog::setLog( new FileLog( "test2.log" ) );
|
||||
|
||||
// this should be skipped
|
||||
AppLog::warning( "A third test warning" );
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue