Levels.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_Levels_
18 #define HH_SENF_Utils_Logger_Levels_ 1
19 
20 // Custom includes
21 
22 //#include "Levels.mpp"
23 #include "Levels.ih"
24 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 
26 namespace senf {
27 namespace log {
28 
67  //\{
68 
71  struct VERBOSE : public detail::LevelBase { static unsigned const value = 1; };
72 
75  struct NOTICE : public detail::LevelBase { static unsigned const value = 2; };
76 
79  struct MESSAGE : public detail::LevelBase { static unsigned const value = 3; };
80 
83  struct IMPORTANT : public detail::LevelBase { static unsigned const value = 4; };
84 
87  struct CRITICAL : public detail::LevelBase { static unsigned const value = 5; };
88 
91  struct FATAL : public detail::LevelBase { static unsigned const value = 6; };
92 
95  struct DISABLED : public detail::LevelBase { static unsigned const value = 7; };
96 
99  struct NONE : public detail::LevelBase { static unsigned const value = 0; };
100 
101  //\}
102 
103  static char const * const LEVELNAMES[8] = {
104  "NONE", "VERBOSE", "NOTICE", "MESSAGE", "IMPORTANT", "CRITICAL", "FATAL", "DISABLED" };
105 
106 }}
107 
108 //-/////////////////////////////////////////////////////////////////////////////////////////////////
109 //#include "Levels.cci"
110 //#include "Levels.ct"
111 //#include "Levels.cti"
112 #endif
113 
114 
115 // Local Variables:
116 // mode: c++
117 // fill-column: 100
118 // comment-column: 40
119 // c-file-style: "senf"
120 // indent-tabs-mode: nil
121 // ispell-local-dictionary: "american"
122 // compile-command: "scons -u test"
123 // End:
Log level MESSAGE.
Definition: Levels.hh:79
Log level VERBOSE.
Definition: Levels.hh:71
Disable logging.
Definition: Levels.hh:95
Log level IMPORTANT.
Definition: Levels.hh:83
Log level CRITICAL.
Definition: Levels.hh:87
Log level NOTICE.
Definition: Levels.hh:75
static unsigned const value
Definition: Levels.hh:71
Inherit log level.
Definition: Levels.hh:99
Log level FATAL.
Definition: Levels.hh:91