LoggingMacros.h
Go to the documentation of this file.
1 // (C) Copyright Renaud Detry 2007-2015.
2 // Distributed under the GNU General Public License and under the
3 // BSD 3-Clause License (See accompanying file LICENSE.txt).
4 
5 /** @file */
6 
7 #ifndef NUKLEI_LOGGING_MACROS_H
8 #define NUKLEI_LOGGING_MACROS_H
9 
10 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //
11 // This file is auto-generated by logging_macros.sh //
12 // Do not edit. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //
13 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //
14 
15 #include <nuklei/Log.h>
16 #include <nuklei/Definitions.h>
17 
18 
19 
20 #define NUKLEI_FATAL(message) { \
21  if (::nuklei::LOG_LEVEL >= 1) {\
22  ::std::ostringstream nuklei_logging_local_o_string_stream; \
23  nuklei_logging_local_o_string_stream << message; \
24  ::nuklei::Log::log(__FILE__, __LINE__, 1, nuklei_logging_local_o_string_stream.str()); }}
25 
26 
27 
28 #define NUKLEI_ERROR(message) { \
29  if (::nuklei::LOG_LEVEL >= 2) {\
30  ::std::ostringstream nuklei_logging_local_o_string_stream; \
31  nuklei_logging_local_o_string_stream << message; \
32  ::nuklei::Log::log(__FILE__, __LINE__, 2, nuklei_logging_local_o_string_stream.str()); }}
33 
34 
35 
36 #define NUKLEI_WARN(message) { \
37  if (::nuklei::LOG_LEVEL >= 3) {\
38  ::std::ostringstream nuklei_logging_local_o_string_stream; \
39  nuklei_logging_local_o_string_stream << message; \
40  ::nuklei::Log::log(__FILE__, __LINE__, 3, nuklei_logging_local_o_string_stream.str()); }}
41 
42 
43 
44 #define NUKLEI_INFO(message) { \
45  if (::nuklei::LOG_LEVEL >= 4) {\
46  ::std::ostringstream nuklei_logging_local_o_string_stream; \
47  nuklei_logging_local_o_string_stream << message; \
48  ::nuklei::Log::log(__FILE__, __LINE__, 4, nuklei_logging_local_o_string_stream.str()); }}
49 
50 
51 
52 #define NUKLEI_LOG(message) { \
53  if (::nuklei::LOG_LEVEL >= 5) {\
54  ::std::ostringstream nuklei_logging_local_o_string_stream; \
55  nuklei_logging_local_o_string_stream << message; \
56  ::nuklei::Log::log(__FILE__, __LINE__, 5, nuklei_logging_local_o_string_stream.str()); }}
57 
58 
59 
60 #define NUKLEI_DEBUG(message) { \
61  if (::nuklei::LOG_LEVEL >= 6) {\
62  ::std::ostringstream nuklei_logging_local_o_string_stream; \
63  nuklei_logging_local_o_string_stream << message; \
64  ::nuklei::Log::log(__FILE__, __LINE__, 6, nuklei_logging_local_o_string_stream.str()); }}
65 
66 
67 
68 #endif
69 
© Copyright 2007-2013 Renaud Detry.
Distributed under the terms of the GNU General Public License (GPL).
(See accompanying file LICENSE.txt or copy at http://www.gnu.org/copyleft/gpl.html.)
Revised Sun Sep 13 2020 19:10:06.