TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
vijay kumar singh
NA
32
113.7k
How to save error logs
May 1 2011 1:57 AM
Please help !
This code must be written in C#.
Problem:
In a application we need to generate Application Logs. So we want you to write a Logger module in C# which should be capable to write logs to file system and other sources like XML file or database. Please keep in mind following aspects while creating this module.
1. Logger module should be Singleton.
2. Logger module should be Thread Safe.
3. Logger module should provide why to log different type of logs like DEBUG, INFO, WARN and ERROR
4. Logger module should be extentable to add various logs destination(e.g XML, DB, System Event Logs) in future if need be.
5. For now you can implement only File base logger.
6. We should be able to set the log level based so logger will capture only desired (INFO, WARN etc) logs.
Reply
Answers (
1
)
Embed C# email
c# wireless conection