LoggingMacros_LLOGGING.h
Go to the documentation of this file.
00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
00002 
00003 // -- BEGIN LICENSE BLOCK ----------------------------------------------
00004 // This file is part of FZIs ic_workspace.
00005 //
00006 // This program is free software licensed under the LGPL
00007 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
00008 // You can find a copy of this license in LICENSE folder in the top
00009 // directory of the source code.
00010 //
00011 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
00012 //
00013 // -- END LICENSE BLOCK ------------------------------------------------
00014 
00015 //----------------------------------------------------------------------
00028 //----------------------------------------------------------------------
00029 // No header guards as this may be included multiple times!
00030 #include "icl_core_logging/LoggingMacros_LOGGING.h"
00031 
00032 // Undef the macros first
00033 #undef LLOGGING_ERROR
00034 #undef LLOGGING_WARNING
00035 #undef LLOGGING_INFO
00036 #undef LLOGGING_DEBUG
00037 #undef LLOGGING_TRACE
00038 
00039 #undef LLOGGING_ERROR_C
00040 #undef LLOGGING_WARNING_C
00041 #undef LLOGGING_INFO_C
00042 #undef LLOGGING_DEBUG_C
00043 #undef LLOGGING_TRACE_C
00044 
00045 #undef LLOGGING_ERROR_CO
00046 #undef LLOGGING_WARNING_CO
00047 #undef LLOGGING_INFO_CO
00048 #undef LLOGGING_DEBUG_CO
00049 #undef LLOGGING_TRACE_CO
00050 
00051 // And then redefine them given the current local logging setting.
00052 
00053 #ifdef ICL_CORE_LOCAL_LOGGING
00054 # define LLOGGING_ERROR(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_ERROR, arg)
00055 # define LLOGGING_WARNING(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_WARNING, arg)
00056 # define LLOGGING_INFO(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_INFO, arg)
00057 # ifdef _IC_DEBUG_
00058 #  define LLOGGING_DEBUG(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_DEBUG, arg)
00059 #  define LLOGGING_TRACE(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_TRACE, arg)
00060 # else
00061 #  define LLOGGING_DEBUG(streamname, arg) (void)0
00062 #  define LLOGGING_TRACE(streamname, arg) (void)0
00063 # endif
00064 #else
00065 # define LLOGGING_ERROR(streamname, arg) (void)0
00066 # define LLOGGING_WARNING(streamname, arg) (void)0
00067 # define LLOGGING_INFO(streamname, arg) (void)0
00068 # define LLOGGING_DEBUG(streamname, arg) (void)0
00069 # define LLOGGING_TRACE(streamname, arg) (void)0
00070 #endif
00071 
00072 
00073 #ifdef ICL_CORE_LOCAL_LOGGING
00074 # define LLOGGING_ERROR_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_ERROR, classname, arg)
00075 # define LLOGGING_WARNING_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_WARNING, classname, arg)
00076 # define LLOGGING_INFO_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_INFO,  classname, arg)
00077 # ifdef _IC_DEBUG_
00078 #  define LLOGGING_DEBUG_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_DEBUG, classname, arg)
00079 #  define LLOGGING_TRACE_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_TRACE, classname, arg)
00080 # else
00081 #  define LLOGGING_DEBUG_C(streamname, classname, arg) (void)0
00082 #  define LLOGGING_TRACE_C(streamname, classname, arg) (void)0
00083 # endif
00084 #else
00085 # define LLOGGING_ERROR_C(streamname, classname, arg) (void)0
00086 # define LLOGGING_WARNING_C(streamname, classname, arg) (void)0
00087 # define LLOGGING_INFO_C(streamname, classname, arg) (void)0
00088 # define LLOGGING_DEBUG_C(streamname, classname, arg) (void)0
00089 # define LLOGGING_TRACE_C(streamname, classname, arg) (void)0
00090 #endif
00091 
00092 
00093 #ifdef ICL_CORE_LOCAL_LOGGING
00094 # define LLOGGING_ERROR_CO(streamname, classname, objectname, arg) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_ERROR, classname, objectname, function, arg)
00095 # define LLOGGING_WARNING_CO(streamname, classname, objectname, arg) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_WARNING, classname, objectname, function, arg)
00096 # define LLOGGING_INFO_CO(streamname, classname, objectname, arg) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_INFO, classname, objectname, function, arg)
00097 # ifdef _IC_DEBUG_
00098 #  define LLOGGING_DEBUG_CO(streamname, classname, objectname, arg) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_DEBUG, classname, objectname, function, arg)
00099 #  define LLOGGING_TRACE_CO(streamname, classname, objectname, arg) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_TRACE, classname, objectname, function, arg)
00100 # else
00101 #  define LLOGGING_DEBUG_CO(streamname, classname, objectname, arg) (void)0
00102 #  define LLOGGING_TRACE_CO(streamname, classname, objectname, arg) (void)0
00103 # endif
00104 #else
00105 # define LLOGGING_ERROR_CO(streamname, classname, objectname, arg) (void)0
00106 # define LLOGGING_WARNING_CO(streamname, classname, objectname, arg) (void)0
00107 # define LLOGGING_INFO_CO(streamname, classname, objectname, arg) (void)0
00108 # define LLOGGING_DEBUG_CO(streamname, classname, objectname, arg) (void)0
00109 # define LLOGGING_TRACE_CO(streamname, classname, objectname, arg) (void)0
00110 #endif


fzi_icl_core
Author(s):
autogenerated on Tue Aug 8 2017 02:28:03