From 8b82aef0397d65de0c7278476e4f409fcc636306 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 28 Sep 2007 16:21:34 +0000 Subject: * src/tests/ClientSessionTest.cpp: Suspend/resume tests. * broker/SessionManager.cpp, broker/SessionHandler.cpp: Implement suspend/resume * client/ScopedAssociation.h, SessionCore.h, SessionHandler.h: Simplified relationships. - Removed ScopedAssociation. - SessionHandler: is now a member of SessionCore. - SessionCore: shared_ptr ownership by Session(s) and ConnectionImpl. - Using framing::FrameHandler interfaces. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@580403 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/log/Statement.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/log') 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 -- cgit v1.2.1