I'm using java 1.4.2 on Linux machine (RHEL 5.4).
Our application uses log4j for logging. I want that some appender will create files containing hostname in file name. Hostname should not be hardocoded, but rather use system properties similar to here (see ${log4j.minutes}).
So the question is if there's hostname in system properties. According to here, there's no default hostname property.
This means I need to add hostname as system property from code of from command line (-D flag).
Do I miss something?