-XX:[+|-]LegacyXlogOption
Controls processing of the -Xlog option.
Syntax
| Setting | Effect | Default |
|---|---|---|
-XX:+LegacyXlogOption |
Enable legacy -Xlog behavior |
|
-XX:-LegacyXlogOption |
Process -Xlog requests for GC logging |
yes |
Explanation
From Eclipse OpenJ9™ 0.24.0, the -Xlog option is replaced by the -Xsyslog option. The -XX:[+|-]LegacyXlogOption controls how the -Xlog option is processed.
- When
-XX:-LegacyXlogOptionis set, the-Xlogoption is recognized only when a form of this option is run that requests garbage collection (GC) logging (for example,-Xlog:gc[:stderr|:file=<filename>]). For more information, see-Xlog. - When
-XX:+LegacyXlogOptionis set, the legacy-Xlogbehavior is enabled. When enabled, the option is equivalent to the-Xsyslogoption. That is, the-Xlogoption can be used with the parameters documented in-Xsyslog.