From 78ebb1ffed1766683e347ca67b1c433a25339e88 Mon Sep 17 00:00:00 2001 From: "Charles E. Rolke" Date: Tue, 12 Feb 2013 20:58:45 +0000 Subject: QPID-4577: Enable/disable high resolution log timestamps From the self-test log file: 2013-02-12 15:33:53 [Broker] notice Changing log hires timestamp to 1 2013-02-12 15:33:53.219003940 [Broker] debug Broker::setLogHiresTimestamp() ... 2013-02-12 15:33:53.491318800 [Broker] notice Changing log hires timestamp to 0 2013-02-12 15:33:53 [Broker] debug Broker::setLogHiresTimestamp() git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1445358 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/include/qpid/log/Logger.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpp/include') diff --git a/cpp/include/qpid/log/Logger.h b/cpp/include/qpid/log/Logger.h index 9464fa52dd..8c4beb0785 100644 --- a/cpp/include/qpid/log/Logger.h +++ b/cpp/include/qpid/log/Logger.h @@ -95,6 +95,11 @@ class QPID_COMMON_CLASS_EXTERN Logger : private boost::noncopyable { /** Get the options used to configure the logger. */ QPID_COMMON_INLINE_EXTERN const Options& getOptions() const { return options; } + /** Get the hires timestamp setting */ + QPID_COMMON_EXTERN bool getHiresTimestamp(); + + /** Set the hires timestamp setting */ + QPID_COMMON_EXTERN void setHiresTimestamp(bool setting); private: typedef boost::ptr_vector Outputs; -- cgit v1.2.1