ConsoleTarget.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
17 #ifndef HH_SENF_Utils_Logger_ConsoleTarget_
18 #define HH_SENF_Utils_Logger_ConsoleTarget_ 1
19 
20 // Custom includes
21 #include "IOStreamTarget.hh"
22 
23 //#include "ConsoleTarget.mpp"
24 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 
26 namespace senf {
27 namespace log {
28 
42  {
43  public:
44  static ConsoleTarget & instance();
45 
46  static void logToStderr();
47 
48  private:
49  ConsoleTarget();
50  };
51 
52 }}
53 
54 //-/////////////////////////////////////////////////////////////////////////////////////////////////
55 //#include "ConsoleTarget.cci"
56 //#include "ConsoleTarget.ct"
57 //#include "ConsoleTarget.cti"
58 #endif
59 
60 
61 // Local Variables:
62 // mode: c++
63 // fill-column: 100
64 // comment-column: 40
65 // c-file-style: "senf"
66 // indent-tabs-mode: nil
67 // ispell-local-dictionary: "american"
68 // compile-command: "scons -u test"
69 // End:
Write log messages to arbitrary std::ostream.
Write log messages to std::cout.
static ConsoleTarget & instance()
IOStreamTarget public header.