#6372: Problem with logging file names and folders

The extra "/logs" in the log4j.xml file was removed. The incorrect logging method was refactored to use the correct one, which takes the "host" parameter and defaults to "system" if such a value is empty/null.