We have some java apps, may be invoked from the command line or inside a web server. Either way they log to a central database. It would be very useful to be able to setup our java apps to read the hostname (or some other unique identifier) on startup, so they can report which server they are running on for debugging purposes. Is there such a mechanism in Java?