85 static void describe_current_configuration(outputStream* out);
86
87
88 public:
89 // Initialization and finalization of log configuration, to be run at vm startup and shutdown respectively.
90 static void initialize(jlong vm_start_time);
91 static void finalize();
92
93 // Perform necessary post-initialization after VM startup. Enables reconfiguration of logging.
94 static void post_initialize();
95
96 // Disable all logging, equivalent to -Xlog:disable.
97 static void disable_logging();
98
99 // Configures logging on stdout for the given tags and level combination.
100 // Intended for mappings between -XX: flags and Unified Logging configuration.
101 // If exact_match is true, only tagsets with precisely the specified tags will be configured
102 // (exact_match=false is the same as "-Xlog:<tags>*=<level>", and exact_match=true is "-Xlog:<tags>=<level>").
103 // Tags should be specified using the LOG_TAGS macro, e.g.
104 // LogConfiguration::configure_stdout(LogLevel::<level>, <true/false>, LOG_TAGS(<tags>));
105 static void configure_stdout(LogLevelType level, bool exact_match, ...);
106
107 // Parse command line configuration. Parameter 'opts' is the string immediately following the -Xlog: argument ("gc" for -Xlog:gc).
108 static bool parse_command_line_arguments(const char* opts = "all");
109
110 // Parse separated configuration arguments (from JCmd/MBean and command line).
111 static bool parse_log_arguments(const char* outputstr,
112 const char* what,
113 const char* decoratorstr,
114 const char* output_options,
115 outputStream* errstream);
116
117 // Prints log configuration to outputStream, used by JCmd/MBean.
118 static void describe(outputStream* out);
119
120 // Prints usage help for command line log configuration.
121 static void print_command_line_help(FILE* out);
122
123 // Rotates all LogOutput
124 static void rotate_all_outputs();
125 };
|
85 static void describe_current_configuration(outputStream* out);
86
87
88 public:
89 // Initialization and finalization of log configuration, to be run at vm startup and shutdown respectively.
90 static void initialize(jlong vm_start_time);
91 static void finalize();
92
93 // Perform necessary post-initialization after VM startup. Enables reconfiguration of logging.
94 static void post_initialize();
95
96 // Disable all logging, equivalent to -Xlog:disable.
97 static void disable_logging();
98
99 // Configures logging on stdout for the given tags and level combination.
100 // Intended for mappings between -XX: flags and Unified Logging configuration.
101 // If exact_match is true, only tagsets with precisely the specified tags will be configured
102 // (exact_match=false is the same as "-Xlog:<tags>*=<level>", and exact_match=true is "-Xlog:<tags>=<level>").
103 // Tags should be specified using the LOG_TAGS macro, e.g.
104 // LogConfiguration::configure_stdout(LogLevel::<level>, <true/false>, LOG_TAGS(<tags>));
105 static void configure_stdout(LogLevelType level, int exact_match, ...);
106
107 // Parse command line configuration. Parameter 'opts' is the string immediately following the -Xlog: argument ("gc" for -Xlog:gc).
108 static bool parse_command_line_arguments(const char* opts = "all");
109
110 // Parse separated configuration arguments (from JCmd/MBean and command line).
111 static bool parse_log_arguments(const char* outputstr,
112 const char* what,
113 const char* decoratorstr,
114 const char* output_options,
115 outputStream* errstream);
116
117 // Prints log configuration to outputStream, used by JCmd/MBean.
118 static void describe(outputStream* out);
119
120 // Prints usage help for command line log configuration.
121 static void print_command_line_help(FILE* out);
122
123 // Rotates all LogOutput
124 static void rotate_all_outputs();
125 };
|