15,896,545 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Articles / Programming Languages / C#
Go to Tip/Trick
Stats
Revisions (20)
C#
.NET
Visual-Studio
logging
Simple Log
Jochen Scharr
Rate me:
Please
Sign up or sign in
to vote.
4.97/5 (47 votes)
2 Feb 2021
MIT
6 min read
184.2K
9.1K
102
A simple but robust logging class
In this tip, you will see how to do essential logging in one simple, robust, static, thread-safe class. No initialization, no configuration, no dependencies. Don't think, just log.
Revisions
Compare
Revision
Minor
Date
Status
Editor
20 - publicly available
Yes
3-Mar-21 10:30
Available
Sean Ewington
Updates in content. Changes: 782
17
No
2-Feb-21 12:38
Pending
Jochen Scharr
Worked in suggestions and bug fixes
16
No
16-Jul-16 10:11
Available
Deeksha Shenoy
Updates in content. Changes: 104
12
No
8-Dec-14 4:27
Available
Sean Ewington
Updates in content.
11
No
8-Dec-14 1:44
Pending
Jochen Scharr
Updated text to reflect code changes
10
No
8-Dec-14 0:20
Available
Deeksha Shenoy
Updates in content. Changes: 4
9
No
7-Dec-14 22:07
Pending
Jochen Scharr
Basic implementation of writing text instead of XML
8
No
7-Dec-14 9:45
Available
Deeksha Shenoy
Updates in content. Changes: 40
7
No
7-Dec-14 4:11
Pending
Jochen Scharr
Corrected typo and added stub for writing text instead of XML
6
No
8-Jul-14 2:42
Available
Deeksha Shenoy
Updates in content.
4
No
19-Jun-14 6:20
Available
Deeksha Shenoy
Updates in content.
3
No
19-Jun-14 6:19
Available
Deeksha Shenoy
Updates in content. Changes: 215
2
No
19-Jun-14 4:07
Pending
Jochen Scharr
Added possibility to log directly to disk. Added possibility to start logging via background-thread explicitly. Updated downloads.
1
No
30-Apr-13 4:13
Available
Smitha Nishant
Initial creation
License
This article, along with any associated source code and files, is licensed under
The MIT License
Written By
Jochen Scharr
Software Developer (Senior)
Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Comments and Discussions
Go to top