< prev index next >
src/share/vm/logging/logOutput.cpp
Print this page
@@ -81,5 +81,20 @@
continue;
}
break;
}
}
+
+void LogOutput::describe(outputStream *out, size_t index) {
+ out->print("#" SIZE_FORMAT ": %s ", index, name());
+ out->print_raw(config_string());
+ out->print(" ");
+ char delimiter[2] = {0};
+ for (size_t d = 0; d < LogDecorators::Count; d++) {
+ LogDecorators::Decorator decorator = static_cast<LogDecorators::Decorator>(d);
+ if (decorators().is_decorator(decorator)) {
+ out->print("%s%s", delimiter, LogDecorators::name(decorator));
+ *delimiter = ',';
+ }
+ }
+}
+
< prev index next >