LoggingMacros_LLOGGING_FMT.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 //----------------------------------------------------------------------
00022 //----------------------------------------------------------------------
00023 #ifndef ICL_CORE_LOGGING_LOGGING_MACROS__LLOGGING__FMT_H_INCLUDED
00024 #define ICL_CORE_LOGGING_LOGGING_MACROS__LLOGGING__FMT_H_INCLUDED
00025 
00026 #include "icl_core_logging/LoggingMacros_LOGGING_FMT.h"
00027 
00028 
00029 #ifdef ICL_CORE_LOCAL_LOGGING
00030 # define LLOGGING_FMT_ERROR(streamname, ...) LOGGING_LOG(streamname, ::icl_core::logging::eLL_ERROR, __VA_ARGS__)
00031 # define LLOGGING_FMT_WARNING(streamname, ...) LOGGING_LOG(streamname, ::icl_core::logging::eLL_WARNING, __VA_ARGS__)
00032 # define LLOGGING_FMT_INFO(streamname, ...) LOGGING_LOG(streamname, ::icl_core::logging::eLL_INFO, __VA_ARGS__)
00033 # ifdef _IC_DEBUG_
00034 #  define LLOGGING_FMT_DEBUG(streamname, ...) LOGGING_LOG(streamname, ::icl_core::logging::eLL_DEBUG, __VA_ARGS__)
00035 #  define LLOGGING_FMT_TRACE(streamname, ...) LOGGING_LOG(streamname, ::icl_core::logging::eLL_TRACE, __VA_ARGS__)
00036 # else
00037 #  define LLOGGING_FMT_DEBUG(streamname, ...) (void)0
00038 #  define LLOGGING_FMT_TRACE(streamname, ...) (void)0
00039 # endif
00040 #else
00041 # define LLOGGING_FMT_ERROR(streamname, ...) (void)0
00042 # define LLOGGING_FMT_WARNING(streamname, ...) (void)0
00043 # define LLOGGING_FMT_INFO(streamname, ...) (void)0
00044 # define LLOGGING_FMT_DEBUG(streamname, ...) (void)0
00045 # define LLOGGING_FMT_TRACE(streamname, ...) (void)0
00046 #endif
00047 
00048 
00049 #ifdef ICL_CORE_LOCAL_LOGGING
00050 # define LLOGGING_FMT_ERROR_C(streamname, classname, ...) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_ERROR, classname, __VA_ARGS__)
00051 # define LLOGGING_FMT_WARNING_C(streamname, classname, ...) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_WARNING, classname, __VA_ARGS__)
00052 # define LLOGGING_FMT_INFO_C(streamname, classname, ...) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_INFO,  classname, __VA_ARGS__)
00053 # ifdef _IC_DEBUG_
00054 #  define LLOGGING_FMT_DEBUG_C(streamname, classname, ...) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_DEBUG, classname, __VA_ARGS__)
00055 #  define LLOGGING_FMT_TRACE_C(streamname, classname, ...) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_TRACE, classname, __VA_ARGS__)
00056 # else
00057 #  define LLOGGING_FMT_DEBUG_C(streamname, classname, ...) (void)0
00058 #  define LLOGGING_FMT_TRACE_C(streamname, classname, ...) (void)0
00059 # endif
00060 #else
00061 # define LLOGGING_FMT_ERROR_C(streamname, classname, ...) (void)0
00062 # define LLOGGING_FMT_WARNING_C(streamname, classname, ...) (void)0
00063 # define LLOGGING_FMT_INFO_C(streamname, classname, ...) (void)0
00064 # define LLOGGING_FMT_DEBUG_C(streamname, classname, ...) (void)0
00065 # define LLOGGING_FMT_TRACE_C(streamname, classname, ...) (void)0
00066 #endif
00067 
00068 
00069 #ifdef ICL_CORE_LOCAL_LOGGING
00070 # define LLOGGING_FMT_ERROR_CO(streamname, classname, objectname, ...) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_ERROR, classname, objectname, function, __VA_ARGS__)
00071 # define LLOGGING_FMT_WARNING_CO(streamname, classname, objectname, ...) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_WARNING, classname, objectname, function, __VA_ARGS__)
00072 # define LLOGGING_FMT_INFO_CO(streamname, classname, objectname, ...) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_INFO, classname, objectname, function, __VA_ARGS__)
00073 # ifdef _IC_DEBUG_
00074 #  define LLOGGING_FMT_DEBUG_CO(streamname, classname, objectname, ...) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_DEBUG, classname, objectname, function, __VA_ARGS__)
00075 #  define LLOGGING_FMT_TRACE_CO(streamname, classname, objectname, ...) LOGGING_LOG_COF(streamname, ::icl_core::logging::eLL_TRACE, classname, objectname, function, __VA_ARGS__)
00076 # else
00077 #  define LLOGGING_FMT_DEBUG_CO(streamname, classname, objectname, ...) (void)0
00078 #  define LLOGGING_FMT_TRACE_CO(streamname, classname, objectname, ...) (void)0
00079 # endif
00080 #else
00081 # define LLOGGING_FMT_ERROR_CO(streamname, classname, objectname, ...) (void)0
00082 # define LLOGGING_FMT_WARNING_CO(streamname, classname, objectname, ...) (void)0
00083 # define LLOGGING_FMT_INFO_CO(streamname, classname, objectname, ...) (void)0
00084 # define LLOGGING_FMT_DEBUG_CO(streamname, classname, objectname, ...) (void)0
00085 # define LLOGGING_FMT_TRACE_CO(streamname, classname, objectname, ...) (void)0
00086 #endif
00087 
00088 #endif


fzi_icl_core
Author(s):
autogenerated on Thu Jun 6 2019 20:22:24