RE: writing to file from web service
- From: jiewan@xxxxxxxxxxxxxxxxxxxx ("Jie Wang [MSFT]")
- Date: Wed, 24 Jun 2009 11:48:28 GMT
Hi,
Not sure whether you were talking about a legacy ASP.NET web service or a
WCF web service. But the code just looks fine to me and it should work.
In addition, there are other choices, if you're interested:
You can also use the .NET built in Trace class to log messages to a text
file together with TextWriterTraceListener class. As stated in the MSDN
document, the Trace class is thread safe. The potential advantage of using
Trace class over your own is, it is configurable without changing the code.
More flexible when you want to change the log format (like txt to xml).
Windows Event logging is another option. The logs will be easier to
manage/analyze for admins.
If you have any futher questions, please don't hesitate to let me know.
Best regards,
Jie Wang
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: writing to file from web service
- From: cj2
- Re: writing to file from web service
- References:
- writing to file from web service
- From: cj2
- writing to file from web service
- Prev by Date: Saving records in VB.NET
- Next by Date: Re: Spurious dependencies?
- Previous by thread: writing to file from web service
- Next by thread: Re: writing to file from web service
- Index(es):
Relevant Pages
|