diff src/share/vm/logging/logConfiguration.hpp @ 10939:8005261869c9

8151526: Print -Xlog configuration in the hs_err_pid file Summary: logging configuration is now printed in hs_err and in vm info. Reviewed-by: coleenp, mlarsson, dholmes
author mockner
date Tue, 19 Apr 2016 11:03:37 -0400
parents 21bb44b28582
children 8e33ab1e0856
line wrap: on
line diff
--- a/src/share/vm/logging/logConfiguration.hpp	Tue Apr 19 14:21:26 2016 +0200
+++ b/src/share/vm/logging/logConfiguration.hpp	Tue Apr 19 11:03:37 2016 -0400
@@ -37,6 +37,7 @@
 // kept implicitly in the LogTagSets and their LogOutputLists. During configuration the tagsets
 // are iterated over and updated accordingly.
 class LogConfiguration : public AllStatic {
+ friend class VMError;
  public:
   // Function for listeners
   typedef void (*UpdateListenerFunction)(void);
@@ -79,6 +80,11 @@
   // This should be called after any configuration change while still holding ConfigurationLock
   static void notify_update_listeners();
 
+  // Respectively describe the built-in and runtime dependent portions of the configuration.
+  static void describe_available(outputStream* out);
+  static void describe_current_configuration(outputStream* out);
+
+
  public:
   // Initialization and finalization of log configuration, to be run at vm startup and shutdown respectively.
   static void initialize(jlong vm_start_time);