How Should I Write A Log File That Shows Step By Step Process While Printing Files

Dec 2 2012 10:56 PM
Hi Friends,
How Should I Write A Log File That Shows Step By Step Process While Printing Files.
I have Some PDf Files In Different Folders...And I Am Trying To Print Some PDF Files From Different Folders.
But While I Am Printing The PDF Files Are Printing Alternatively i.e,Printing 1 Pdf File And Missing The Next PDF file..
But In Debug Mode It Is Printing All The PDF Files OF The Given Paths..
To Print The Pdf Files From Folder..i Had Used Process Class To Print PDF Files From Different Folder Paths..

I Want to Know That  Why It  Is Working Good In Debug Mode...but Not In Release Mode.
So I Need A Log File To Know About The Inner Process OF Taking Files From Folder And Printing The PDf Files...

I Don't Know How To Write The Log File As I Am Fresher To .NET

Please Some One Help Me....

Thanking You In Advance