26 #ifndef CAMITKLOGGER_H
27 #define CAMITKLOGGER_H
138 void setLogLevel(
LogLevel level)
override;
142 void setLogToStandardOutput(
bool writeToStdOut)
override;
147 bool getLogToStandardOutput()
override;
156 bool setLogToFile(
bool writeToFile)
override;
174 bool setLogFileDirectory(QDir directoryName,
bool moveExistingLogFile =
true)
override;
177 bool getLogToFile()
override;
180 QFileInfo getLogFileInfo()
override;
187 void setMessageBoxLevel(
LogLevel level)
override;
190 LogLevel getMessageBoxLevel()
override;
196 void setDebugInformation(
bool)
override;
199 bool getDebugInformation()
override;
206 void setTimeStampInformation(
bool showTimeStamp)
override;
209 bool getTimeStampInformation()
override;
222 QString log(
const QString msg,
const LogLevel level,
char const* fileName,
char const* methodName,
int lineNumber,
const QObject* sender =
nullptr)
override final;
227 virtual QString buildLogMessage(QString message,
LogLevel level,
char const* fileName,
char const* methodName,
int lineNumber,
const QObject* sender =
nullptr);
231 QString getCamiTKAPIInformation(
const QObject* sender);
234 bool openLogFile(
bool moveFile =
false, QFileInfo fileToMove = QFileInfo());
252 bool displayDebugInformation;
255 bool displayTimeStampInformation;
258 QDir logFileDirectory;
264 QTextStream* logStream;
267 QDateTime logStartTime;
#define CAMITK_API
Definition: CamiTKAPI.h:49
This is the default logger for CamiTK.
Definition: CamiTKLogger.h:123
The CamiTK logger interface provides a flexible tracing system to CamiTK applications.
Definition: InterfaceLogger.h:51
LogLevel
: how chatty should the log output be...
Definition: InterfaceLogger.h:60
Definition: Action.cpp:36