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
160 virtual QString
log(
const QString msg,
const LogLevel level,
char const* fileName,
char const* methodName,
int lineNumber,
const QObject* sender =
nullptr) = 0;
#define CAMITK_API
Definition: CamiTKAPI.h:49
The CamiTK logger interface provides a flexible tracing system to CamiTK applications.
Definition: InterfaceLogger.h:51
virtual LogLevel getMessageBoxLevel()=0
virtual void setDebugInformation(bool)=0
Allows the logger to add debug information to the log message.
virtual bool getLogToFile()=0
check if the logger is currently writing on a file
virtual void setTimeStampInformation(bool showTimeStamp)=0
By default a logger should always show the time-stamp in the form of "yyyy-MM-dd HH:mm:ss....
virtual void setMessageBoxLevel(LogLevel level)=0
Set the lowest log level that will open modal message box for messages instead of (silently/undisrupt...
virtual QString log(const QString msg, const LogLevel level, char const *fileName, char const *methodName, int lineNumber, const QObject *sender=nullptr)=0
Log a message: If the logger is allowed to write on standard output, it will display the message (and...
virtual void setLogToStandardOutput(bool writeToStdOut)=0
Allows the logger to write on std::cout.
virtual ~InterfaceLogger()=default
empty virtual destructor, to avoid memory leak
virtual bool setLogFileDirectory(QDir directoryName, bool moveExistingLogFile=true)=0
Set the specific directory to write to (default is the subdirectory "CamiTK" in the system temporary ...
virtual bool getLogToStandardOutput()=0
check if the logger is currently writing on standard output (std::cout)
virtual void setLogLevel(LogLevel level)=0
Sets Current verbosity level of the log.
virtual bool getTimeStampInformation()=0
virtual bool getDebugInformation()=0
virtual LogLevel getLogLevel()=0
Get the current verbosity level of the log.
virtual bool setLogToFile(bool writeToFile)=0
Ask the logger to write to the log file.
virtual QFileInfo getLogFileInfo()=0
LogLevel
: how chatty should the log output be...
Definition: InterfaceLogger.h:60
Definition: Action.cpp:36