13 #ifndef mitkLogBackend_h
14 #define mitkLogBackend_h
Abstract superclass for text-based log backends.
Log backend implementation for MITK.
static bool CheckIfFileExists(const std::string &filename)
Check if a file exists.
static void CatchLogFileCommandLineParameter(int &argc, char **argv)
Automatically extract and remove the "--logfile <file>" parameters from the standard C main parameter...
static void SetLogFile(const std::string &file)
Set extra log file path in addition to the console log.
static std::string IncrementLogFileNames(const std::string &prefixPath, int numLogFiles=10)
Increment the names of logfiles with the given prefixPath.
void ProcessMessage(const LogMessage &) override
Called by the MITK log mechanism if the object is registered and a log message is emitted.
static void Register()
Registers MITK log backend.
static std::string GetLogFile()
static void RotateLogFiles(const std::string &prefixPath)
Activates and handles a rolling log file with the given prefix and path.
static void Unregister()
Unregister MITK log backend.
static void EnableAdditionalConsoleWindow(bool enable)
Enable an additional logging output window by means of itk::OutputWindow.
LogBackendBase::OutputType GetOutputType() const override
Find image slices visible on a given plane.
A single log message (log event) of the MITK log mechanism.