hotspot/src/share/vm/logging/logTagSet.cpp
changeset 38263 a7488329ad27
parent 37464 5373bbadb433
child 38292 73a0be9b2f47
--- a/hotspot/src/share/vm/logging/logTagSet.cpp	Tue May 10 03:37:36 2016 +0000
+++ b/hotspot/src/share/vm/logging/logTagSet.cpp	Mon May 09 15:46:12 2016 +0200
@@ -24,6 +24,7 @@
 #include "precompiled.hpp"
 #include "logging/logDecorations.hpp"
 #include "logging/logLevel.hpp"
+#include "logging/logMessageBuffer.hpp"
 #include "logging/logOutput.hpp"
 #include "logging/logTag.hpp"
 #include "logging/logTagSet.hpp"
@@ -74,6 +75,13 @@
   }
 }
 
+void LogTagSet::log(const LogMessageBuffer& msg) {
+  LogDecorations decorations(LogLevel::Invalid, *this, _decorators);
+  for (LogOutputList::Iterator it = _output_list.iterator(msg.least_detailed_level()); it != _output_list.end(); it++) {
+    (*it)->write(msg.iterator(it.level(), decorations));
+  }
+}
+
 int LogTagSet::label(char* buf, size_t len, const char* separator) const {
   int tot_written = 0;
   for (size_t i = 0; i < _ntags; i++) {