Flash logging clarification

Hi All
I am doing the logging feature for my project. I am doing that by writing onto a text file. The problem is I am able to see the logfile.txt generated only when I debug a movie. When I try to run the flash movie,I wont be able to able to generate the logfile.txt…!

Can anyone help me in this…??

Thanks in Advance
Nirmal.