The spooler logging facility is not able to work in different threads.
To use logging from different threads it is recommended to use the log4j framework.
An example for a Java class, which is using multiple threads and log4j:
The job to execute this class:
The content of the log file after execution of the Java class is shown below: