19 void setFile(
const string & path,
bool append=
false);
21 void log(ofLogLevel level,
const string & module,
const string & message);
22 void log(ofLogLevel level,
const string & module,
const char* format, ...) OF_PRINTF_ATTR(4, 5);
23 void log(ofLogLevel level,
const string & module,
const char* format, va_list args);
49 ofConsoleLoggerChannel consoleLogger;
50 ofFileLoggerChannel fileLogger;
52 ofLogLevel consoleLogLevel = OF_LOG_VERBOSE;
53 ofLogLevel fileLogLevel = OF_LOG_VERBOSE;
void close()
CLose the log file.
Definition: ofConsoleFileLoggerChannel.cpp:8
void setConsoleLogLevel(ofLogLevel level)
Set the minimum log level for the console log.
Definition: ofConsoleFileLoggerChannel.h:36
void setFile(const string &path, bool append=false)
Set the log file.
Definition: ofConsoleFileLoggerChannel.cpp:12
ofConsoleFileLoggerChannel()
Create an ofConsoleFileLoggerChannel.
Definition: ofConsoleFileLoggerChannel.cpp:3
A logger channel that logs its messages to the console and a log file.
Definition: ofConsoleFileLoggerChannel.h:6
void setFileLogLevel(ofLogLevel level)
Set the minimum log level for the file log.
Definition: ofConsoleFileLoggerChannel.h:46
void log(ofLogLevel level, const string &module, const string &message)
Definition: ofConsoleFileLoggerChannel.cpp:16