--- 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];
}
};