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
VijayNiVijayNi 

batch apex job result in debug logs

Hi ,

I have  a query where i have batch size of 200 and records are 2000  the batch apex execute it 10 times . What is the result in debug log and how many times does the debug log run is it 10 times ?
VinayVinay (Salesforce Developers) 
Hi Vijay,

It will execute once and in debug logs it would show more information on start, execute and finish methods of batch class.

Would suggest to set finest log for apex to narrow down debug logs further.

Thanks,
Vinay Kumar
VijayNiVijayNi
Hi vinay,

can you show me with sample as my org doesn't have  the data and  help me understand finest log for apex to narrow down debug logs further ? 
plese as i am new to apex

Thanks
Vijay. 
VinayVinay (Salesforce Developers) 
Hi Vijay,

You can setup debug log level,  I do not have batch class setup to execute and share logs.

Review below link.

https://help.salesforce.com/articleView?id=code_setting_debug_log_levels.htm&type=5

Batch:
https://www.biswajeetsamal.com/blog/tag/apex-batch-job/
https://www.sfdcpoint.com/salesforce/batch-apex-example-in-salesforce/

User-added image

Please mark as Best Answer if above information was helpful so that it can help others in the future.

Thanks,