Add useful startup information.

This commit is contained in:
Michael Lipp 2023-08-24 13:56:23 +02:00
parent c13344d0e2
commit 5fe71670e2
2 changed files with 11 additions and 4 deletions

View file

@ -132,7 +132,11 @@ public class Manager extends Component {
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public static void main(String[] args) {
try {
Logger.getLogger(Manager.class.getName()).fine(() -> "Version: "
var logger = Logger.getLogger(Manager.class.getName());
logger.fine(() -> "Running on " + System.getProperty("java.vm.name")
+ " (" + System.getProperty("java.vm.version") + ")"
+ " from " + System.getProperty("java.vm.vendor"));
logger.fine(() -> "Version: "
+ Manager.class.getPackage().getImplementationVersion());
// Parse the command line arguments