--- a/hotspot/src/share/vm/logging/logConfiguration.cpp Tue Apr 19 14:21:26 2016 +0200
+++ b/hotspot/src/share/vm/logging/logConfiguration.cpp Tue Apr 19 11:03:37 2016 -0400
@@ -382,7 +382,7 @@
return true;
}
-void LogConfiguration::describe(outputStream* out) {
+void LogConfiguration::describe_available(outputStream* out){
out->print("Available log levels:");
for (size_t i = 0; i < LogLevel::Count; i++) {
out->print("%s %s", (i == 0 ? "" : ","), LogLevel::name(static_cast<LogLevelType>(i)));
@@ -402,7 +402,9 @@
}
out->cr();
- ConfigurationLock cl;
+}
+
+void LogConfiguration::describe_current_configuration(outputStream* out){
out->print_cr("Log output configuration:");
for (size_t i = 0; i < _n_outputs; i++) {
out->print("#" SIZE_FORMAT ": %s %s ", i, _outputs[i]->name(), _outputs[i]->config_string());
@@ -416,6 +418,12 @@
}
}
+void LogConfiguration::describe(outputStream* out) {
+ describe_available(out);
+ ConfigurationLock cl;
+ describe_current_configuration(out);
+}
+
void LogConfiguration::print_command_line_help(FILE* out) {
jio_fprintf(out, "-Xlog Usage: -Xlog[:[what][:[output][:[decorators][:output-options]]]]\n"
"\t where 'what' is a combination of tags and levels on the form tag1[+tag2...][*][=level][,...]\n"