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
Sales Force FRMSales Force FRM 

How write log info to a separate file

Hi Folks,
              I have trigger and class as follows:
trigger SampleTrigger on Opportunity (after insert) {

SampleOpportunity s=new SampleOpportunity();

public class SampleOpportunity {

public void sample(){
integer opp1=1;
integer opp2=2;
system.debug('ONE :'+opp1);
system.debug('TWO :'+opp2);

Now i want log the debug statements( Indicated in brown) in to a separate log file or a place where can i see the complete
action of a class which is logged , so i can understand what the status of class at each level!
finally i would like to have a separate file which have a log info my class!