Join Now
|
Login
home
login
join now
.NET pattern framework
javascript + jquery patterns
database pattern framework
products and pricing
.NET design patterns
javascript design patterns
javascript tutorial
sql + database tutorial
connection strings
visual studio shortcuts
c# coding standards
html color codes
all references
explore
questions
ask question
tags
users
contact us
training courses
schedule
registration
about us
training and education for professional developers
login
join now
Home
Questions
Question
« Prev Topic
|
Next Topic »
File locking question
Rahul Sabharwal
250
96.9
Jul 25, 2010
0
In my ASP.NET application I log all the exceptions to a log file.
This can be a issue when multiple requests try to write at the same time to the log file.
How is this scenario best handled?
File Locking
Add Comment
Flag
Follow
Email
3 answers
answer date
votes
comments
Sreenivas Manyam Rajaram
685
99.9
Jul 26, 2010
1
You may use the Enterprise Library from Codeplex for your scenario. It has all the patterns implemented to handle the mutithreaded scenario like yours.
Add Comment
Flag
Link
Mihir Vinchhi
60
95.3
Jul 29, 2010
1
Lock code block which has been used to write log to the file using "lock Statement". This statement would not been executed until previous execution has been completed.
For detail visit
http://msdn.microsoft.com/en-us/library/c5kehkcz(VS.80).aspx
link.
Add Comment
Flag
Link
Andrew Green
130
96.8
Jul 29, 2010
0
Another popular logging framework is Log4net.
http://logging.apache.org/log4net/
Add Comment
Flag
Link
Write Your Answer
return to top