21 #ifndef mitkLogBackend_h
22 #define mitkLogBackend_h
OutputType
Classification of the output destination of a backend.
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
Process and output a single log message.
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
Return the output type of this backend.
Find image slices visible on a given plane.
A single log message (log event) of the MITK log mechanism.