Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mbilogBackendCout.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,
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 <ctime>
18 #include <iomanip>
19 #include <list>
20 
21 #include "mbilogBackendCout.h"
22 
24 {
25  m_useFullOutput = false;
26 }
27 
29 {
30 }
31 
33 {
34  m_useFullOutput = full;
35 }
36 
38 {
39  if (m_useFullOutput)
40  FormatFull(l);
41  else
42  FormatSmart(l);
43 }
44 
45 mbilog::OutputType mbilog::BackendCout::GetOutputType() const
46 {
47  return mbilog::Console;
48 }
An object of this class represents a single logging message (logging event) of the mbi logging mechan...
virtual OutputType GetOutputType() const override
void SetFull(bool full)
Sets the formatting mode. If true long messages will be displayed. Default is false (short/smart mess...
virtual void ProcessMessage(const mbilog::LogMessage &l) override
This method is called by the mbi logging mechanism if the object is registered in the mbi logging mec...