+ 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!