diff options
| author | Charles E. Rolke <chug@apache.org> | 2013-02-12 20:58:45 +0000 |
|---|---|---|
| committer | Charles E. Rolke <chug@apache.org> | 2013-02-12 20:58:45 +0000 |
| commit | 78ebb1ffed1766683e347ca67b1c433a25339e88 (patch) | |
| tree | e205012d3d50474de078a4378f8e4c749260f631 /cpp/include | |
| parent | fb133bfae55f10cdbcd3a0377aeaf7cc95595999 (diff) | |
| download | qpid-python-78ebb1ffed1766683e347ca67b1c433a25339e88.tar.gz | |
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
Diffstat (limited to 'cpp/include')
| -rw-r--r-- | cpp/include/qpid/log/Logger.h | 5 |
1 files changed, 5 insertions, 0 deletions
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<Output> Outputs; |
