< prev index next >
src/share/vm/logging/logConfiguration.cpp
Print this page
@@ -349,5 +349,14 @@
" -Xlog:disable -Xlog:rt=trace:rttrace.txt\n"
"\t Turn off all logging, including warnings and errors,\n"
"\t and then enable messages tagged with 'rt' using 'trace' level to file 'rttrace.txt'.\n");
}
+
+void LogConfiguration::rotate_all_outputs() {
+ for (size_t idx = 0; idx < _n_outputs; idx++) {
+ if (_outputs[idx]->is_rotatable()) {
+ _outputs[idx]->rotate(true);
+ }
+ }
+}
+
< prev index next >