Login
Join Now
Products
All Products and Pricing
.NET Design Pattern Framework
TM
4.5 -- C# Edition
.NET Design Pattern Framework
TM
4.5 -- VB Edition
PRO .NET Design Pattern Framework
TM
4.5 -- C# Edition
PRO .NET Design Pattern Framework
TM
4.5 -- VB Edition
JavaScript + jQuery Pattern Framework
TM
SQL + Database Pattern Framework
TM
PRO SQL + Database Pattern Framework
TM
Customers
Meet our Customers
Success Stories
Reference Guides
.NET Design Patterns
JavaScript Design Patterns
JavaScript Tutorial
SQL Tutorial
Connection Strings
Visual Studio Shortcuts
C# Coding Standards
HTML Color Codes
All References
Community
Questions
Ask Question
Explore
Tags
Users
Company
About Us
Our Story
Services
Training
Contact Us
Products
All Products and Pricing
.NET Design Pattern Framework
TM
4.5 -- C# Edition
.NET Design Pattern Framework
TM
4.5 -- VB Edition
PRO .NET Design Pattern Framework
TM
4.5 -- C# Edition
PRO .NET Design Pattern Framework
TM
4.5 -- VB Edition
JavaScript + jQuery Pattern Framework
TM
SQL + Database Pattern Framework
TM
PRO SQL + Database Pattern Framework
TM
Customers
Meet our Customers
Success Stories
Reference Guides
.NET Design Patterns
JavaScript Design Patterns
JavaScript Tutorial
SQL Tutorial
Connection Strings
Visual Studio Shortcuts
C# Coding Standards
HTML Color Codes
All References
Community
Questions
Ask Question
Explore
Tags
Users
About Us
Company
Our Story
Services
Training
Contact Us
Home
/
Questions
/
Question
Rahul Sabharwal
250
96.9
Jul 25, 2010
0
File locking question
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
705
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.7
Jul 29, 2010
0
Another popular logging framework is Log4net.
http://logging.apache.org/log4net/
Add Comment
Flag
Link
Write Your Answer
Better Code
Better Career
Better Lifestyle
.NET Design Pattern
Framework 4.5
PRO
.NET Design Pattern
Framework 4.5
JavaScript + jQuery
Design Pattern Framework
SQL + Database
Design Pattern Framework
-- Instant Access --
Instant Download