ofLogExample
loggingExample

Learning Objectives
This example demonstrates how to log things on different levels. You can differentiate between these levels:
OF_LOG_VERBOSEOF_LOG_NOTICEOF_LOG_WARNINGOF_LOG_ERROROF_LOG_FATAL_ERROROF_LOG_SILENT
You will learn how to..
- set log levels via
ofSetLogLevel(..) - write logs via
ofLog(..)or via different log level functions likeofLogVerbose(..) - write logs into the console or into a file via
ofLogToFile(..)orofLogToConsole(..)
Expected Behavior
When launching this app, you should see a screen with instructions. The logging is printed to the console by default but can be changed to be added to a file.
Instructions for use:
- Press
xto toggle verbose log - press
fto switch between file or console output
Other classes used in this file
This Example uses the following classes:
- http://openframeworks.cc/documentation/utils/ofLog/