26 #ifndef INTERFACELOGGER_H 27 #define INTERFACELOGGER_H 56 #define CAMITK_WINDOWS_SYSTEM_ERROR_SAFEGUARD ERROR 68 #ifdef CAMITK_WINDOWS_SYSTEM_ERROR_SAFEGUARD 69 #define ERROR CAMITK_WINDOWS_SYSTEM_ERROR_SAFEGUARD 81 virtual void setLogLevel(
LogLevel level) = 0;
85 virtual void setLogToStandardOutput(
bool writeToStdOut) = 0;
90 virtual bool getLogToStandardOutput() = 0;
99 virtual bool setLogToFile(
bool writeToFile) = 0;
114 virtual bool setLogFileDirectory(QDir directoryName,
bool moveExistingLogFile =
true) = 0;
117 virtual bool getLogToFile() = 0;
120 virtual QFileInfo getLogFileInfo() = 0;
125 virtual void setMessageBoxLevel(
LogLevel level) = 0;
128 virtual LogLevel getMessageBoxLevel() = 0;
134 virtual void setDebugInformation(
bool) = 0;
137 virtual bool getDebugInformation() = 0;
144 virtual void setTimeStampInformation(
bool showTimeStamp) = 0;
147 virtual bool getTimeStampInformation() = 0;
160 virtual QString log(
const QString msg,
const LogLevel level,
char const* fileName,
char const* methodName,
int lineNumber,
const QObject* sender =
nullptr) = 0;
165 #endif // INTERFACELOGGER_H Definition: Action.cpp:36
#define CAMITK_API
Definition: CamiTKAPI.h:49
LogLevel
: how chatty should the log output be...
Definition: InterfaceLogger.h:60
The CamiTK logger interface provides a flexible tracing system to CamiTK applications.
Definition: InterfaceLogger.h:51