Click here to Skip to main content
15,896,545 members
Articles / Programming Languages / C#

Simple Log

Rate me:
Please Sign up or sign in to vote.
4.97/5 (47 votes)
2 Feb 2021MIT6 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
Software Developer (Senior)
Germany 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