diff options
Diffstat (limited to 'cpp/src/qpid/log')
| -rw-r--r-- | cpp/src/qpid/log/Statement.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/src/qpid/log/Statement.h b/cpp/src/qpid/log/Statement.h index 563da3716c..4eb4d1e7d8 100644 --- a/cpp/src/qpid/log/Statement.h +++ b/cpp/src/qpid/log/Statement.h @@ -113,7 +113,16 @@ inline std::ostream& noop(std::ostream& s) { return s; } stmt_.log(QPID_LOG_STRINGSTREAM(message)); \ } while(0) - +/** + * Macro for complicated logging logic that can't fit in a simple QPID_LOG + * statement. For example: + * @code + * QPID_IF_LOG(debug) { + * message = do_complicated_stuff; + * QPID_LOG(debug, message); + * } + */ +#define QPID_IF_LOG(level) }} // namespace qpid::log |
