Where is your logging.properties file located? It should be available in the root of the classpath. As a sanity check, what does the following code print?
CopySystem.out.println(getClass().getClassLoader().getResource("logging.properties"));
If the code is in a static context, use
CopySystem.out.println(ClassName.class.getClassLoader().getResource("logging.properties"));
Answer from sjr on Stack OverflowWhere is your logging.properties file located? It should be available in the root of the classpath. As a sanity check, what does the following code print?
CopySystem.out.println(getClass().getClassLoader().getResource("logging.properties"));
If the code is in a static context, use
CopySystem.out.println(ClassName.class.getClassLoader().getResource("logging.properties"));
The root cause of the problem the questioner is having is that his logging.properties file is not being read.
The file specified in java.util.logging.config.file is not read from the classpath. Instead it is read from the file system relative the current directory.
For example, running the following command java -Djava.util.logging.config.file=smclient-logging.properties SMMain will read the smclient-logging.properties from the current directory. Once the correct java.util.logging.config.file is read, the logs are generated as specified in the file.