Go to the documentation of this file. 23 #ifndef ICL_CORE_LOGGING_LOGGING_MACROS__SLOGGING__FMT_H_INCLUDED 24 #define ICL_CORE_LOGGING_LOGGING_MACROS__SLOGGING__FMT_H_INCLUDED 26 #define SLOGGING_FMT_LOG_FLCO(stream, level, filename, line, classname, objectname, ...) \ 28 if (stream.isActive()) \ 30 if (stream.getLogLevel() <= level) \ 32 ::icl_core::logging::ThreadStream& thread_stream = stream.threadStream(level); \ 33 thread_stream.setLineLogLevel(level); \ 34 thread_stream.setFilename(filename); \ 35 thread_stream.setLine(line); \ 36 thread_stream.setClassname(classname); \ 37 thread_stream.setObjectname(objectname); \ 38 thread_stream.setFunction(__FUNCTION__); \ 39 thread_stream.printf(__VA_ARGS__); \ 43 #define SLOGGING_FMT_LOG_CO(stream, level, classname, objectname, ...) SLOGGING_FMT_LOG_FLCO(stream, level, __FILE__, __LINE__, #classname, objectname, __VA_ARGS__) 44 #define SLOGGING_FMT_LOG_C(stream, level, classname, ...) SLOGGING_FMT_LOG_FLCO(stream, level, __FILE__, __LINE__, #classname, "", __VA_ARGS__) 45 #define SLOGGING_FMT_LOG(stream, level, ...) SLOGGING_FMT_LOG_FLCO(stream, level, __FILE__, __LINE__, "", "", __VA_ARGS__) 48 #define SLOGGING_FMT_ERROR(stream, ...) SLOGGING_FMT_LOG(stream, ::icl_core::logging::eLL_ERROR, __VA_ARGS__) 49 #define SLOGGING_FMT_WARNING(stream, ...) SLOGGING_FMT_LOG(stream, ::icl_core::logging::eLL_WARNING, __VA_ARGS__) 50 #define SLOGGING_FMT_INFO(stream, ...) SLOGGING_FMT_LOG(stream, ::icl_core::logging::eLL_INFO, __VA_ARGS__) 52 # define SLOGGING_FMT_DEBUG(stream, ...) SLOGGING_FMT_LOG(stream, ::icl_core::logging::eLL_DEBUG, __VA_ARGS__) 53 # define SLOGGING_FMT_TRACE(stream, ...) SLOGGING_FMT_LOG(stream, ::icl_core::logging::eLL_TRACE, __VA_ARGS__) 55 # define SLOGGING_FMT_DEBUG(stream, ...) (void)0 56 # define SLOGGING_FMT_TRACE(stream, ...) (void)0 60 #define SLOGGING_FMT_ERROR_C(stream, classname, ...) SLOGGING_FMT_LOG_C(stream, ::icl_core::logging::eLL_ERROR, classname, __VA_ARGS__) 61 #define SLOGGING_FMT_WARNING_C(stream, classname, ...) SLOGGING_FMT_LOG_C(stream, ::icl_core::logging::eLL_WARNING, classname, __VA_ARGS__) 62 #define SLOGGING_FMT_INFO_C(stream, classname, ...) SLOGGING_FMT_LOG_C(stream, ::icl_core::logging::eLL_INFO, classname, __VA_ARGS__) 64 # define SLOGGING_FMT_DEBUG_C(stream, classname, ...) SLOGGING_FMT_LOG_C(stream, ::icl_core::logging::eLL_DEBUG, classname, __VA_ARGS__) 65 # define SLOGGING_FMT_TRACE_C(stream, classname, ...) SLOGGING_FMT_LOG_C(stream, ::icl_core::logging::eLL_TRACE, classname, __VA_ARGS__) 67 # define SLOGGING_FMT_DEBUG_C(stream, classname, ...) (void)0 68 # define SLOGGING_FMT_TRACE_C(stream, classname, ...) (void)0 72 #define SLOGGING_FMT_ERROR_CO(stream, classname, objectname, ...) SLOGGING_FMT_LOG_CO(stream, ::icl_core::logging::eLL_ERROR, classname, objectname, __VA_ARGS__) 73 #define SLOGGING_FMT_WARNING_CO(stream, classname, objectname, ...) SLOGGING_FMT_LOG_CO(stream, ::icl_core::logging::eLL_WARNING, classname, objectname, __VA_ARGS__) 74 #define SLOGGING_FMT_INFO_CO(stream, classname, objectname, ...) SLOGGING_FMT_LOG_CO(stream, ::icl_core::logging::eLL_INFO, classname, objectname, __VA_ARGS__) 76 # define SLOGGING_FMT_DEBUG_CO(stream, classname, objectname, ...) SLOGGING_FMT_LOG_CO(stream, ::icl_core::logging::eLL_DEBUG, classname, objectname, __VA_ARGS__) 77 # define SLOGGING_FMT_TRACE_CO(stream, classname, objectname, ...) SLOGGING_FMT_LOG_CO(stream, ::icl_core::logging::eLL_TRACE, classname, objectname, __VA_ARGS__) 79 # define SLOGGING_FMT_DEBUG_CO(stream, classname, objectname, ...) (void)0 80 # define SLOGGING_FMT_TRACE_CO(stream, classname, objectname, ...) (void)0
fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58