Click here to Skip to main content
16,012,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a web application that send sms to many user through SMSAPI.
I want to write to Log File the information about all user to whom sms is sent.

Example If SMS is send to 10 Users
Then I want to log Phone No of 10 Users.

Please Help..
Posted

I suggest Log4Net.Take a look at this. How to use log4net[^]

This below article has the web.config settings to write to file.Take a look

http://sadi02.wordpress.com/2008/06/29/log4net-tutorial-in-c-net-how-can-i-show-log-in-a-file/[^]
 
Share this answer
 
v2
Comments
Sandeep Mewara 18-Jan-11 9:31am    
Good answer! 5!
kanchan dhage 1-Feb-11 2:06am    
I am facing problem in my web application.
I want to write log to text file.
Please help me what setting are required in web.config file.I am following same steps for working with log4net.
Anupama Roy 1-Feb-11 3:13am    
Take a look at the modified answer.
kanchan dhage 2-Feb-11 0:53am    
Hello,
I worked out the same process in my web application.Its working.
But I have come across new problem.The session expires.
This[^] article might help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900