0.44.0
|
#include <iaConsole.h>
Public Member Functions | |
void | lock () |
void | unlock () |
void | setLogLevel (iaLogLevel logLevel) |
iaLogLevel | getLogLevel () const |
void | printCallStack (uint32 maxDepth=1000) |
void | printHeader (iaLogLevel logLevel) |
void | activateLogfile (bool activate) |
void | printStats () |
void | printTombstone () |
void | exit () |
void | printCake () |
void | resetStats () |
uint32 | getErrors () |
uint32 | getWarnings () |
void | openLogfile () |
void | closeLogfile () |
template<typename T > | |
iaConsole & | operator<< (const T &v) |
iaConsole & | operator<< (const superspecialfuncptrtype v) |
iaConsole & | operator<< (const iaForegroundColor color) |
void | setUseColors (bool useColors=true) |
bool | isUsingColors () const |
Static Public Member Functions | |
static iaConsole & | getInstance () |
Friends | |
void * | threadFunc (void *data) |
iaConsole & | endl (iaConsole &console) |
iaConsole & | endlTab (iaConsole &console) |
iaConsole & | flush (iaConsole &console) |
iaConsole & | incerr (iaConsole &console) |
iaConsole & | incwarn (iaConsole &console) |
iaConsole & | LOCK (iaConsole &console) |
iaConsole & | UNLOCK (iaConsole &console) |
iaConsole & | printIgorThreadID (iaConsole &console) |
iaConsole & | applicationTime (iaConsole &console) |
console and logging interface
void iaux::iaConsole::activateLogfile | ( | bool | activate | ) |
activates or deactivates log file output
activate | true: activates log file output; false: console output only |
void iaux::iaConsole::closeLogfile | ( | ) |
closes logging to log file
void iaux::iaConsole::exit | ( | ) |
exits application or calls debug break
uint32 iaux::iaConsole::getErrors | ( | ) |
|
static |
returns single instance of the console
iaLogLevel iaux::iaConsole::getLogLevel | ( | ) | const |
uint32 iaux::iaConsole::getWarnings | ( | ) |
bool iaux::iaConsole::isUsingColors | ( | ) | const |
void iaux::iaConsole::lock | ( | ) |
lock console for exclusive access
void iaux::iaConsole::openLogfile | ( | ) |
manually initializing the log file
Note: can't use classes iaDirectory or iaFile here because of possible deadlock in logging
|
inline |
changes foreground color for output in console
color | foreground color |
|
inline |
|
inline |
pipes anything in to console and log
void iaux::iaConsole::printCake | ( | ) |
prints a birthday cake in the log
void iaux::iaConsole::printCallStack | ( | uint32 | maxDepth = 1000 | ) |
prints call stack
depth | max number of call stack depth to print |
void iaux::iaConsole::printHeader | ( | iaLogLevel | logLevel | ) |
prints logging head
logLevel | represents the tag used in the head |
void iaux::iaConsole::printStats | ( | ) |
prints warning and error counter
void iaux::iaConsole::printTombstone | ( | ) |
prints a tombstone in the log
void iaux::iaConsole::resetStats | ( | ) |
reset error and warning counter
void iaux::iaConsole::setLogLevel | ( | iaLogLevel | logLevel | ) |
sets the log level
logLevel | the log level |
void iaux::iaConsole::setUseColors | ( | bool | useColors = true | ) |
sets wether or not to use colors for console output
useColors | if true using colors for console output |
void iaux::iaConsole::unlock | ( | ) |
unlock console
prints application time in the console
console | console instance to use |
prints an endline to the console
console | console instance to use |
prints an endline and a logging tab to the console
console | console instance to use |
sends an flush to the console
console | console instance to use |
increments the error counter
console | console instance to use |
increments the warning counter
console | console instance to use |
locks mutex
console | console instance to use |
prints the igor thread id in the console
console | console instance to use |
|
friend |
unlocks mutex
console | console instance to use |