I am using java 1.4.2 on a Linux machine (RHEL 5.4).
In our application, log4j is used for logging. I want some appender to create files containing the host name in the file name. The hostname should not be hardcoded, but rather use system properties similar here (see $ {Log4j.minutes}).
So, the question is whether there is a host name in the system properties. According to here , there is no default hostname property.
This means that I need to add the hostname as a system property from the code from the command line (-D flag).
Did I miss something?
java logging log4j
dimba
source share