LoggingMacros_LLOGGING.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
28 //----------------------------------------------------------------------
29 // No header guards as this may be included multiple times!
31 
32 // Undef the macros first
33 #undef LLOGGING_ERROR
34 #undef LLOGGING_WARNING
35 #undef LLOGGING_INFO
36 #undef LLOGGING_DEBUG
37 #undef LLOGGING_TRACE
38 
39 #undef LLOGGING_ERROR_C
40 #undef LLOGGING_WARNING_C
41 #undef LLOGGING_INFO_C
42 #undef LLOGGING_DEBUG_C
43 #undef LLOGGING_TRACE_C
44 
45 #undef LLOGGING_ERROR_CO
46 #undef LLOGGING_WARNING_CO
47 #undef LLOGGING_INFO_CO
48 #undef LLOGGING_DEBUG_CO
49 #undef LLOGGING_TRACE_CO
50 
51 // And then redefine them given the current local logging setting.
52 
53 #ifdef ICL_CORE_LOCAL_LOGGING
54 # define LLOGGING_ERROR(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_ERROR, arg)
55 # define LLOGGING_WARNING(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_WARNING, arg)
56 # define LLOGGING_INFO(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_INFO, arg)
57 # ifdef _IC_DEBUG_
58 # define LLOGGING_DEBUG(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_DEBUG, arg)
59 # define LLOGGING_TRACE(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_TRACE, arg)
60 # else
61 # define LLOGGING_DEBUG(streamname, arg) (void)0
62 # define LLOGGING_TRACE(streamname, arg) (void)0
63 # endif
64 #else
65 # define LLOGGING_ERROR(streamname, arg) (void)0
66 # define LLOGGING_WARNING(streamname, arg) (void)0
67 # define LLOGGING_INFO(streamname, arg) (void)0
68 # define LLOGGING_DEBUG(streamname, arg) (void)0
69 # define LLOGGING_TRACE(streamname, arg) (void)0
70 #endif
71 
72 
73 #ifdef ICL_CORE_LOCAL_LOGGING
74 # define LLOGGING_ERROR_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_ERROR, classname, arg)
75 # define LLOGGING_WARNING_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_WARNING, classname, arg)
76 # define LLOGGING_INFO_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_INFO, classname, arg)
77 # ifdef _IC_DEBUG_
78 # define LLOGGING_DEBUG_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_DEBUG, classname, arg)
79 # define LLOGGING_TRACE_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_TRACE, classname, arg)
80 # else
81 # define LLOGGING_DEBUG_C(streamname, classname, arg) (void)0
82 # define LLOGGING_TRACE_C(streamname, classname, arg) (void)0
83 # endif
84 #else
85 # define LLOGGING_ERROR_C(streamname, classname, arg) (void)0
86 # define LLOGGING_WARNING_C(streamname, classname, arg) (void)0
87 # define LLOGGING_INFO_C(streamname, classname, arg) (void)0
88 # define LLOGGING_DEBUG_C(streamname, classname, arg) (void)0
89 # define LLOGGING_TRACE_C(streamname, classname, arg) (void)0
90 #endif
91 
92 
93 #ifdef ICL_CORE_LOCAL_LOGGING
94 # define LLOGGING_ERROR_CO(streamname, classname, objectname, arg) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_ERROR, classname, objectname, function, arg)
95 # define LLOGGING_WARNING_CO(streamname, classname, objectname, arg) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_WARNING, classname, objectname, function, arg)
96 # define LLOGGING_INFO_CO(streamname, classname, objectname, arg) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_INFO, classname, objectname, function, arg)
97 # ifdef _IC_DEBUG_
98 # define LLOGGING_DEBUG_CO(streamname, classname, objectname, arg) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_DEBUG, classname, objectname, function, arg)
99 # define LLOGGING_TRACE_CO(streamname, classname, objectname, arg) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_TRACE, classname, objectname, function, arg)
100 # else
101 # define LLOGGING_DEBUG_CO(streamname, classname, objectname, arg) (void)0
102 # define LLOGGING_TRACE_CO(streamname, classname, objectname, arg) (void)0
103 # endif
104 #else
105 # define LLOGGING_ERROR_CO(streamname, classname, objectname, arg) (void)0
106 # define LLOGGING_WARNING_CO(streamname, classname, objectname, arg) (void)0
107 # define LLOGGING_INFO_CO(streamname, classname, objectname, arg) (void)0
108 # define LLOGGING_DEBUG_CO(streamname, classname, objectname, arg) (void)0
109 # define LLOGGING_TRACE_CO(streamname, classname, objectname, arg) (void)0
110 #endif
Defines logging macros.


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58