LoggingMacros_LOGGING.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 //----------------------------------------------------------------------
00026 //----------------------------------------------------------------------
00027 #ifndef ICL_CORE_LOGGING_LOGGING_MACROS__LOGGING_H_INCLUDED
00028 #define ICL_CORE_LOGGING_LOGGING_MACROS__LOGGING_H_INCLUDED
00029 
00030 #include "icl_core_logging/LoggingMacros_SLOGGING.h"
00031 
00032 #define LOGGING_LOG_FLCO(streamname, level, filename, line, classname, objectname, arg) \
00033   do {                                                                  \
00034     ::icl_core::logging::LogStream& stream = streamname::instance();    \
00035     SLOGGING_LOG_FLCO(stream, level, filename, line, classname, objectname, arg); \
00036   } while (0)
00037 #define LOGGING_LOG_CO(streamname, level, classname, objectname, arg) LOGGING_LOG_FLCO(streamname, level, __FILE__, __LINE__, #classname, objectname, arg)
00038 #define LOGGING_LOG_C(streamname, level, classname, arg) LOGGING_LOG_FLCO(streamname, level, __FILE__, __LINE__, #classname, "", arg)
00039 #define LOGGING_LOG(streamname, level, arg) LOGGING_LOG_FLCO(streamname, level, __FILE__, __LINE__, "", "", arg)
00040 
00041 
00042 #define LOGGING_ERROR(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_ERROR, arg)
00043 #define LOGGING_WARNING(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_WARNING, arg)
00044 #define LOGGING_INFO(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_INFO, arg)
00045 #ifdef _IC_DEBUG_
00046 # define LOGGING_DEBUG(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_DEBUG, arg)
00047 # define LOGGING_TRACE(streamname, arg) LOGGING_LOG(streamname, ::icl_core::logging::eLL_TRACE, arg)
00048 #else
00049 # define LOGGING_DEBUG(streamname, arg) (void)0
00050 # define LOGGING_TRACE(streamname, arg) (void)0
00051 #endif
00052 
00053 
00054 #define LOGGING_ERROR_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_ERROR, classname, arg)
00055 #define LOGGING_WARNING_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_WARNING, classname, arg)
00056 #define LOGGING_INFO_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_INFO,  classname, arg)
00057 #ifdef _IC_DEBUG_
00058 # define LOGGING_DEBUG_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_DEBUG, classname, arg)
00059 # define LOGGING_TRACE_C(streamname, classname, arg) LOGGING_LOG_C(streamname, ::icl_core::logging::eLL_TRACE, classname, arg)
00060 #else
00061 # define LOGGING_DEBUG_C(streamname, classname, arg) (void)0
00062 # define LOGGING_TRACE_C(streamname, classname, arg) (void)0
00063 #endif
00064 
00065 
00066 #define LOGGING_ERROR_CO(stream, classname, objectname, arg) LOGGING_LOG_CO(stream, ::icl_core::logging::eLL_ERROR, classname, objectname, arg)
00067 #define LOGGING_WARNING_CO(stream, classname, objectname, arg) LOGGING_LOG_CO(stream, ::icl_core::logging::eLL_WARNING, classname, objectname, arg)
00068 #define LOGGING_INFO_CO(stream, classname, objectname, arg) LOGGING_LOG_CO(stream, ::icl_core::logging::eLL_INFO, classname, objectname, arg)
00069 #ifdef _IC_DEBUG_
00070 # define LOGGING_DEBUG_CO(stream, classname, objectname, arg) LOGGING_LOG_CO(stream, ::icl_core::logging::eLL_DEBUG, classname, objectname, arg)
00071 # define LOGGING_TRACE_CO(stream, classname, objectname, arg) LOGGING_LOG_CO(stream, ::icl_core::logging::eLL_TRACE, classname, objectname, arg)
00072 #else
00073 # define LOGGING_DEBUG_CO(stream, classname, objectname, arg) (void)0
00074 # define LOGGING_TRACE_CO(stream, classname, objectname, arg) (void)0
00075 #endif
00076 
00077 
00078 #endif


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