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
77 virtual LogLevel getLogLevel() = 0;
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