Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include "mitkCommon.h"
#include "mitkTestingMacros.h"
#include <itksys/SystemTools.hxx>
#include <mitkLog.h>
#include <mitkStandardFileLocations.h>
#include <string>
#include <QtConcurrentRun>
Go to the source code of this file.
Functions | |
void | LogMessages (unsigned int threadID, unsigned int numberOfTimes) |
static void | TestThreadSaveLog (bool toFile) |
Test logging from Qt threads. More... | |
int | QmitkThreadedLogTest (int, char *[]) |
void LogMessages | ( | unsigned int | threadID, |
unsigned int | numberOfTimes | ||
) |
Definition at line 27 of file QmitkThreadedLogTest.cpp.
References MITK_DEBUG, MITK_ERROR, MITK_FATAL, MITK_INFO, and MITK_WARN.
Referenced by TestThreadSaveLog().
int QmitkThreadedLogTest | ( | int | , |
char * | [] | ||
) |
Definition at line 98 of file QmitkThreadedLogTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_END(), MITK_TEST_OUTPUT, and TestThreadSaveLog().
|
static |
Test logging from Qt threads.
Definition at line 49 of file QmitkThreadedLogTest.cpp.
References filename, mitk::StandardFileLocations::GetInstance(), mitk::StandardFileLocations::GetOptionDirectory(), LogMessages(), MITK_ERROR, MITK_TEST_CONDITION_REQUIRED, and mitk::LoggingBackend::SetLogFile().
Referenced by mitkLogTest(), and QmitkThreadedLogTest().