changeset 49759:c154476ce765

8201450: Provide access to LogHandle tagset Summary: Added LogHandle::tagset function. Reviewed-by: stefank
author kbarrett
date Thu, 12 Apr 2018 15:50:03 -0400
parents 4e0aeeec9fa1
children 69bae761600b
files src/hotspot/share/logging/logHandle.hpp
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/logging/logHandle.hpp	Thu Apr 12 14:56:27 2018 -0400
+++ b/src/hotspot/share/logging/logHandle.hpp	Thu Apr 12 15:50:03 2018 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -43,6 +43,10 @@
     return _tagset->is_level(level);
   }
 
+  LogTagSet* tagset() const {
+    return _tagset;
+  }
+
 #define LOG_LEVEL(level, name) ATTRIBUTE_PRINTF(2, 0)   \
   LogHandle& v##name(const char* fmt, va_list args) { \
     _tagset->vwrite(LogLevel::level, fmt, args); \