Created
July 6, 2011 21:04
-
-
Save roxlu/1068321 to your computer and use it in GitHub Desktop.
Testing of logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Check 1. | |
//ofLogToFile("of.log"); | |
ofSetLogLevel(OF_LOG_VERBOSE); | |
ofLog(OF_LOG_VERBOSE,"log something"); | |
ofLog(OF_LOG_VERBOSE,"Something to log"); | |
ofLog(OF_LOG_VERBOSE,"Something else to log"); | |
/* | |
Output of Check 1: | |
OF: OF_VERBOSE: log something | |
OF: OF_VERBOSE: Something to log | |
OF: OF_VERBOSE: Something else to log | |
*/ | |
// Check 2. | |
ofLogVerbose("Verbose message"); | |
ofLogNotice("Notice message"); | |
ofLogWarning("Look out!"); | |
ofLogError("Errr"); | |
ofLogFatalError("Wow fatal!"); | |
/* | |
Output of Check 2: (THESE ARE LOGGED TO FILE, BUT NOT APPENDED) | |
Verbose message: OF_VERBOSE: | |
Notice message: OF_LOG_NOTICE: | |
Look out!: OF_LOG_WARNING: | |
Errr: OF_LOG_ERROR: | |
Wow fatal!: OF_LOG_FATAL_ERROR | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment