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
Apex codingApex coding 

Logging Information

Hi
 
I have written an apex script which  inserts records into my custom object
 
Now I have to log information like How many records got inserted and if any error occured while inserting
I want to log the error if any
 
so how to log the necessary info or error info
 
How can we log information in sales force?, what is the name of the log file?
what settings should be done for logging in sales force? and How it works?