|
TuttleOFX
1
|
#include <string>#include <cassert>#include <cstdio>#include <cstdarg>#include <cstdlib>
Go to the source code of this file.
Namespaces | |
| namespace | OFX |
The core 'OFX Support' namespace, used by plugin implementations. All code for these are defined in the common support libraries. | |
| namespace | OFX::Log |
this namespace wraps up logging functionality | |
Defines | |
| #define | kLogFileEnvVar "OFX_PLUGIN_LOGFILE" |
| environment variable for the log file | |
Functions | |
| static std::string | OFX::Log::gLogFileName (getenv(kLogFileEnvVar)?getenv(kLogFileEnvVar):"ofxTestLog.txt") |
| the global logfile name | |
| void | OFX::Log::setFileName (const std::string &value) |
| Sets the name of the log file. | |
| bool | OFX::Log::open (void) |
| Opens the log file, returns whether this was sucessful or not. | |
| void | OFX::Log::close (void) |
| Closes the log file. | |
| void | OFX::Log::indent (void) |
| Indent it, not MP sane at the moment. | |
| void | OFX::Log::outdent (void) |
| Outdent it, not MP sane at the moment. | |
| static void | OFX::Log::doIndent (void) |
| do the indenting | |
| void | OFX::Log::print (const char *format,...) |
| Prints to the log file. | |
| void | OFX::Log::warning (bool condition, const char *format,...) |
| Prints to the log file only if the condition is true and prepends a warning notice. | |
| void | OFX::Log::error (bool condition, const char *format,...) |
| Prints to the log file only if the condition is true and prepends an error notice. | |
Variables | |
| static FILE * | OFX::Log::gLogFP = 0 |
| log file | |
| static int | OFX::Log::gIndent = 0 |
| global indent level, not MP sane | |
| #define kLogFileEnvVar "OFX_PLUGIN_LOGFILE" |
environment variable for the log file
Definition at line 58 of file ofxsLog.cpp.