Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berryCommandTracing.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "berryLog.h"
14 
15 #include "berryCommandTracing.h"
16 
17 #include <iostream>
18 
19 namespace berry {
20 
21 const QString CommandTracing::SEPARATOR = " >>> ";
22 
23 void CommandTracing::PrintTrace(const QString& component,
24  const QString& message)
25 {
26  QString buffer(component);
27  if ((!component.isEmpty()) && (!message.isEmpty()))
28  {
29  buffer += SEPARATOR;
30  }
31  if (!message.isEmpty())
32  {
33  buffer += message;
34  }
35  BERRY_INFO << buffer;
36 }
37 
38 CommandTracing::CommandTracing()
39 {
40  // Do nothing.
41 }
42 
43 }
static void PrintTrace(const QString &component, const QString &message)
static const QString SEPARATOR
#define BERRY_INFO
Definition: berryLog.h:20