Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryCommandTracing.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "berryLog.h"
18 
19 #include "berryCommandTracing.h"
20 
21 #include <iostream>
22 
23 namespace berry {
24 
25 const QString CommandTracing::SEPARATOR = " >>> ";
26 
27 void CommandTracing::PrintTrace(const QString& component,
28  const QString& message)
29 {
30  QString buffer(component);
31  if ((!component.isEmpty()) && (!message.isEmpty()))
32  {
33  buffer += SEPARATOR;
34  }
35  if (!message.isEmpty())
36  {
37  buffer += message;
38  }
39  BERRY_INFO << buffer;
40 }
41 
42 CommandTracing::CommandTracing()
43 {
44  // Do nothing.
45 }
46 
47 }
static void PrintTrace(const QString &component, const QString &message)
static const QString SEPARATOR
#define BERRY_INFO
Definition: berryLog.h:24