hotspot/src/share/vm/logging/logDecorations.hpp
changeset 38263 a7488329ad27
parent 36174 481391df586b
child 40656 d4964c292b78
--- a/hotspot/src/share/vm/logging/logDecorations.hpp	Tue May 10 03:37:36 2016 +0000
+++ b/hotspot/src/share/vm/logging/logDecorations.hpp	Mon May 09 15:46:12 2016 +0200
@@ -53,7 +53,18 @@
 
   LogDecorations(LogLevelType level, const LogTagSet& tagset, const LogDecorators& decorators);
 
+  LogLevelType level() const {
+    return _level;
+  }
+
+  void set_level(LogLevelType level) {
+    _level = level;
+  }
+
   const char* decoration(LogDecorators::Decorator decorator) const {
+    if (decorator == LogDecorators::level_decorator) {
+      return LogLevel::name(_level);
+    }
     return _decoration_offset[decorator];
   }
 };