LoggingMacros_LLOGGING_FMT.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 //----------------------------------------------------------------------
22 //----------------------------------------------------------------------
23 #ifndef ICL_CORE_LOGGING_LOGGING_MACROS__LLOGGING__FMT_H_INCLUDED
24 #define ICL_CORE_LOGGING_LOGGING_MACROS__LLOGGING__FMT_H_INCLUDED
25 
27 
28 
29 #ifdef ICL_CORE_LOCAL_LOGGING
30 # define LLOGGING_FMT_ERROR(streamname, ...) LOGGING_LOG(streamname, ::icl_core::logging::eLL_ERROR, __VA_ARGS__)
31 # define LLOGGING_FMT_WARNING(streamname, ...) LOGGING_LOG(streamname, ::icl_core::logging::eLL_WARNING, __VA_ARGS__)
32 # define LLOGGING_FMT_INFO(streamname, ...) LOGGING_LOG(streamname, ::icl_core::logging::eLL_INFO, __VA_ARGS__)
33 # ifdef _IC_DEBUG_
34 # define LLOGGING_FMT_DEBUG(streamname, ...) LOGGING_LOG(streamname, ::icl_core::logging::eLL_DEBUG, __VA_ARGS__)
35 # define LLOGGING_FMT_TRACE(streamname, ...) LOGGING_LOG(streamname, ::icl_core::logging::eLL_TRACE, __VA_ARGS__)
36 # else
37 # define LLOGGING_FMT_DEBUG(streamname, ...) (void)0
38 # define LLOGGING_FMT_TRACE(streamname, ...) (void)0
39 # endif
40 #else
41 # define LLOGGING_FMT_ERROR(streamname, ...) (void)0
42 # define LLOGGING_FMT_WARNING(streamname, ...) (void)0
43 # define LLOGGING_FMT_INFO(streamname, ...) (void)0
44 # define LLOGGING_FMT_DEBUG(streamname, ...) (void)0
45 # define LLOGGING_FMT_TRACE(streamname, ...) (void)0
46 #endif
47 
48 
49 #ifdef ICL_CORE_LOCAL_LOGGING
50 # define LLOGGING_FMT_ERROR_C(streamname, classname, ...) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_ERROR, classname, __VA_ARGS__)
51 # define LLOGGING_FMT_WARNING_C(streamname, classname, ...) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_WARNING, classname, __VA_ARGS__)
52 # define LLOGGING_FMT_INFO_C(streamname, classname, ...) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_INFO, classname, __VA_ARGS__)
53 # ifdef _IC_DEBUG_
54 # define LLOGGING_FMT_DEBUG_C(streamname, classname, ...) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_DEBUG, classname, __VA_ARGS__)
55 # define LLOGGING_FMT_TRACE_C(streamname, classname, ...) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_TRACE, classname, __VA_ARGS__)
56 # else
57 # define LLOGGING_FMT_DEBUG_C(streamname, classname, ...) (void)0
58 # define LLOGGING_FMT_TRACE_C(streamname, classname, ...) (void)0
59 # endif
60 #else
61 # define LLOGGING_FMT_ERROR_C(streamname, classname, ...) (void)0
62 # define LLOGGING_FMT_WARNING_C(streamname, classname, ...) (void)0
63 # define LLOGGING_FMT_INFO_C(streamname, classname, ...) (void)0
64 # define LLOGGING_FMT_DEBUG_C(streamname, classname, ...) (void)0
65 # define LLOGGING_FMT_TRACE_C(streamname, classname, ...) (void)0
66 #endif
67 
68 
69 #ifdef ICL_CORE_LOCAL_LOGGING
70 # define LLOGGING_FMT_ERROR_CO(streamname, classname, objectname, ...) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_ERROR, classname, objectname, function, __VA_ARGS__)
71 # define LLOGGING_FMT_WARNING_CO(streamname, classname, objectname, ...) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_WARNING, classname, objectname, function, __VA_ARGS__)
72 # define LLOGGING_FMT_INFO_CO(streamname, classname, objectname, ...) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_INFO, classname, objectname, function, __VA_ARGS__)
73 # ifdef _IC_DEBUG_
74 # define LLOGGING_FMT_DEBUG_CO(streamname, classname, objectname, ...) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_DEBUG, classname, objectname, function, __VA_ARGS__)
75 # define LLOGGING_FMT_TRACE_CO(streamname, classname, objectname, ...) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_TRACE, classname, objectname, function, __VA_ARGS__)
76 # else
77 # define LLOGGING_FMT_DEBUG_CO(streamname, classname, objectname, ...) (void)0
78 # define LLOGGING_FMT_TRACE_CO(streamname, classname, objectname, ...) (void)0
79 # endif
80 #else
81 # define LLOGGING_FMT_ERROR_CO(streamname, classname, objectname, ...) (void)0
82 # define LLOGGING_FMT_WARNING_CO(streamname, classname, objectname, ...) (void)0
83 # define LLOGGING_FMT_INFO_CO(streamname, classname, objectname, ...) (void)0
84 # define LLOGGING_FMT_DEBUG_CO(streamname, classname, objectname, ...) (void)0
85 # define LLOGGING_FMT_TRACE_CO(streamname, classname, objectname, ...) (void)0
86 #endif
87 
88 #endif


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