function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RadekRadek 

Salesforce - Parallel Data Loader process with one Logs file -log4j2

I upgraded the Data Loader version to 53.0.3. I want to save the logs to one file and I want to use 'RollingFileAppender' for the log4j2 configuration. However, Data Loader is started by a script, and several DL processes can run simultaneously. And that again causes the error 'ERROR Unable to delete file ABC. The process cannot access the file because it is being used by another process.'. Is it possible to use one Logs file and use it when running DL in parallel? Is it possible to somehow configure Logs for DL so that there are more log files if DL is run by command-line with the command 'process.bat "file path to process-conf.xml" process name'?
VinayVinay (Salesforce Developers) 
Hi Radek,

As per my understanding this would be OOB solution you cannot configure parallel process with one log file.

https://help.salesforce.com/s/articleView?id=sf.loader_logging.htm&type=5

Please mark as Best Answer if above information was helpful.

Thanks,
RadekRadek
Actually, it still needs help.

So as it is not possible to save to one file then is it possible to save to separate log files depending on the bean name.
For example, I call 3 processes simultaneously:

process.bat "file path to process-conf.xml" Job1
process.bat "file path to process-conf.xml" Job2
process.bat "file path to process-conf.xml" Job3

Is it possible to set it so that I have 3 separate log files:

Job1.log
Job2.log
Job3.log

or depending on the thread?
 
RadekRadek
Hi,
has anyone used logs in a similar way?